Class SendMessageBatchResult
- java.lang.Object
-
- com.amazonaws.services.sqs.model.SendMessageBatchResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SendMessageBatchResult extends Object implements Serializable, Cloneable
For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SendMessageBatchResult()
-
Method Summary
-
-
-
Method Detail
-
getSuccessful
public List<SendMessageBatchResultEntry> getSuccessful()
A list of SendMessageBatchResultEntry items.
- Returns:
- A list of SendMessageBatchResultEntry items.
-
setSuccessful
public void setSuccessful(Collection<SendMessageBatchResultEntry> successful)
A list of SendMessageBatchResultEntry items.
- Parameters:
successful
- A list of SendMessageBatchResultEntry items.
-
withSuccessful
public SendMessageBatchResult withSuccessful(SendMessageBatchResultEntry... successful)
A list of SendMessageBatchResultEntry items.
NOTE: This method appends the values to the existing list (if any). Use
setSuccessful(java.util.Collection)
orwithSuccessful(java.util.Collection)
if you want to override the existing values.- Parameters:
successful
- A list of SendMessageBatchResultEntry items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSuccessful
public SendMessageBatchResult withSuccessful(Collection<SendMessageBatchResultEntry> successful)
A list of SendMessageBatchResultEntry items.
- Parameters:
successful
- A list of SendMessageBatchResultEntry items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFailed
public List<BatchResultErrorEntry> getFailed()
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
- Returns:
- A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
-
setFailed
public void setFailed(Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
- Parameters:
failed
- A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
-
withFailed
public SendMessageBatchResult withFailed(BatchResultErrorEntry... failed)
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
NOTE: This method appends the values to the existing list (if any). Use
setFailed(java.util.Collection)
orwithFailed(java.util.Collection)
if you want to override the existing values.- Parameters:
failed
- A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withFailed
public SendMessageBatchResult withFailed(Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
- Parameters:
failed
- A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SendMessageBatchResult clone()
-
-