public class SendMessageBatchResult
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<BatchResultErrorEntry> |
failed
A list of BatchResultErrorEntry items with the error detail about
each message that could not be enqueued.
|
private SdkInternalList<SendMessageBatchResultEntry> |
successful
A list of SendMessageBatchResultEntry items.
|
Constructor and Description |
---|
SendMessageBatchResult() |
Modifier and Type | Method and Description |
---|---|
SendMessageBatchResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<BatchResultErrorEntry> |
getFailed()
A list of BatchResultErrorEntry items with the error detail about
each message that could not be enqueued.
|
java.util.List<SendMessageBatchResultEntry> |
getSuccessful()
A list of SendMessageBatchResultEntry items.
|
int |
hashCode() |
void |
setFailed(java.util.Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items with the error detail about
each message that could not be enqueued.
|
void |
setSuccessful(java.util.Collection<SendMessageBatchResultEntry> successful)
A list of SendMessageBatchResultEntry items.
|
java.lang.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(java.util.Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items with the error detail about
each message that could not be enqueued.
|
SendMessageBatchResult |
withSuccessful(java.util.Collection<SendMessageBatchResultEntry> successful)
A list of SendMessageBatchResultEntry items.
|
SendMessageBatchResult |
withSuccessful(SendMessageBatchResultEntry... successful)
A list of SendMessageBatchResultEntry items.
|
private SdkInternalList<SendMessageBatchResultEntry> successful
A list of SendMessageBatchResultEntry items.
private SdkInternalList<BatchResultErrorEntry> failed
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
public java.util.List<SendMessageBatchResultEntry> getSuccessful()
A list of SendMessageBatchResultEntry items.
public void setSuccessful(java.util.Collection<SendMessageBatchResultEntry> successful)
A list of SendMessageBatchResultEntry items.
successful
- A list of SendMessageBatchResultEntry items.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)
or
withSuccessful(java.util.Collection)
if you want to override the
existing values.
successful
- A list of SendMessageBatchResultEntry items.public SendMessageBatchResult withSuccessful(java.util.Collection<SendMessageBatchResultEntry> successful)
A list of SendMessageBatchResultEntry items.
successful
- A list of SendMessageBatchResultEntry items.public java.util.List<BatchResultErrorEntry> getFailed()
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.
public void setFailed(java.util.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.
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.
failed
- A list of BatchResultErrorEntry items with the error detail
about each message that could not be enqueued.public SendMessageBatchResult withFailed(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SendMessageBatchResult clone()
clone
in class java.lang.Object