public final class SendMessageBatchResult extends Object implements Serializable
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(List<BatchResultErrorEntry> failed,
List<SendMessageBatchResultEntry> successful) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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() |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SendMessageBatchResult |
withSuccessful(SendMessageBatchResultEntry... successful)
A list of SendMessageBatchResultEntry items.
|
public SendMessageBatchResult(List<BatchResultErrorEntry> failed, List<SendMessageBatchResultEntry> successful)
public List<SendMessageBatchResultEntry> getSuccessful()
public SendMessageBatchResult withSuccessful(SendMessageBatchResultEntry... successful)
successful
- A list of SendMessageBatchResultEntry items.public List<BatchResultErrorEntry> getFailed()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2010–2017. All rights reserved.