public 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() |
| Modifier and Type | Method and Description |
|---|---|
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()
A list of SendMessageBatchResultEntry items.
A list of SendMessageBatchResultEntry items.
public void setSuccessful(Collection<SendMessageBatchResultEntry> successful)
A list of SendMessageBatchResultEntry items.
successful - A list of SendMessageBatchResultEntry items.
public SendMessageBatchResult withSuccessful(SendMessageBatchResultEntry... successful)
A list of SendMessageBatchResultEntry items.
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)
A list of SendMessageBatchResultEntry items.
Returns a reference to this object so that method calls can be chained together.
successful - A list of SendMessageBatchResultEntry items.
public List<BatchResultErrorEntry> getFailed()
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
public void setFailed(Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
failed - A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
public SendMessageBatchResult withFailed(BatchResultErrorEntry... failed)
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
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)
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
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 ObjectObject.toString()Copyright © 2019. All rights reserved.