Class SendMessageBatchResult
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.A list of SendMessageBatchResultEntry items.int
hashCode()
void
setFailed
(Collection<BatchResultErrorEntry> failed) A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.void
setSuccessful
(Collection<SendMessageBatchResultEntry> successful) A list of SendMessageBatchResultEntry items.toString()
Returns a string representation of this object; useful for testing and debugging.withFailed
(BatchResultErrorEntry... failed) A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.withFailed
(Collection<BatchResultErrorEntry> failed) A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.withSuccessful
(SendMessageBatchResultEntry... successful) A list of SendMessageBatchResultEntry items.withSuccessful
(Collection<SendMessageBatchResultEntry> successful) A list of SendMessageBatchResultEntry items.
-
Constructor Details
-
SendMessageBatchResult
public SendMessageBatchResult()
-
-
Method Details
-
getSuccessful
A list of SendMessageBatchResultEntry items.
- Returns:
- A list of SendMessageBatchResultEntry items.
-
setSuccessful
A list of SendMessageBatchResultEntry items.
- Parameters:
successful
- A list of SendMessageBatchResultEntry items.
-
withSuccessful
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-