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.
Constructor and Description |
---|
SendMessageBatchResult() |
Modifier and Type | Method and Description |
---|---|
SendMessageBatchResult |
clone() |
boolean |
equals(Object obj) |
List<BatchResultErrorEntry> |
getFailed()
A list of BatchResultErrorEntry items with the error detail
about each message that could not be enqueued.
|
List<SendMessageBatchResultEntry> |
getSuccessful()
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SendMessageBatchResult |
withFailed(BatchResultErrorEntry... failed)
A list of BatchResultErrorEntry items with the error detail
about each message that could not be enqueued.
|
SendMessageBatchResult |
withFailed(Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items with the error detail
about each message that could not be enqueued.
|
SendMessageBatchResult |
withSuccessful(Collection<SendMessageBatchResultEntry> successful)
A list of SendMessageBatchResultEntry items.
|
SendMessageBatchResult |
withSuccessful(SendMessageBatchResultEntry... successful)
A list of SendMessageBatchResultEntry items.
|
public List<SendMessageBatchResultEntry> getSuccessful()
public void setSuccessful(Collection<SendMessageBatchResultEntry> successful)
successful
- A list of SendMessageBatchResultEntry items.public SendMessageBatchResult withSuccessful(SendMessageBatchResultEntry... successful)
NOTE: This method appends the values to the existing list (if
any). Use setSuccessful(java.util.Collection)
or withSuccessful(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
successful
- A list of SendMessageBatchResultEntry items.public SendMessageBatchResult withSuccessful(Collection<SendMessageBatchResultEntry> successful)
Returns a reference to this object so that method calls can be chained together.
successful
- A list of SendMessageBatchResultEntry items.public List<BatchResultErrorEntry> getFailed()
public void setFailed(Collection<BatchResultErrorEntry> failed)
failed
- A list of BatchResultErrorEntry items with the error detail
about each message that could not be enqueued.public SendMessageBatchResult withFailed(BatchResultErrorEntry... failed)
NOTE: This method appends the values to the existing list (if
any). Use setFailed(java.util.Collection)
or withFailed(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
failed
- A list of BatchResultErrorEntry items with the error detail
about each message that could not be enqueued.public SendMessageBatchResult withFailed(Collection<BatchResultErrorEntry> failed)
Returns a reference to this object so that method calls can be chained together.
failed
- A list of BatchResultErrorEntry items with the error detail
about each message that could not be enqueued.public String toString()
toString
in class Object
Object.toString()
public SendMessageBatchResult clone()
Copyright © 2015. All rights reserved.