public class DeleteMessageBatchResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message cannot be deleted.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<BatchResultErrorEntry> |
failed
A list of BatchResultErrorEntry items.
|
private SdkInternalList<DeleteMessageBatchResultEntry> |
successful
A list of DeleteMessageBatchResultEntry items.
|
Constructor and Description |
---|
DeleteMessageBatchResult() |
private SdkInternalList<DeleteMessageBatchResultEntry> successful
A list of DeleteMessageBatchResultEntry items.
private SdkInternalList<BatchResultErrorEntry> failed
A list of BatchResultErrorEntry items.
public java.util.List<DeleteMessageBatchResultEntry> getSuccessful()
A list of DeleteMessageBatchResultEntry items.
public void setSuccessful(java.util.Collection<DeleteMessageBatchResultEntry> successful)
A list of DeleteMessageBatchResultEntry items.
successful
- A list of DeleteMessageBatchResultEntry items.public DeleteMessageBatchResult withSuccessful(DeleteMessageBatchResultEntry... successful)
A list of DeleteMessageBatchResultEntry 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 DeleteMessageBatchResultEntry items.public DeleteMessageBatchResult withSuccessful(java.util.Collection<DeleteMessageBatchResultEntry> successful)
A list of DeleteMessageBatchResultEntry items.
successful
- A list of DeleteMessageBatchResultEntry items.public java.util.List<BatchResultErrorEntry> getFailed()
A list of BatchResultErrorEntry items.
public void setFailed(java.util.Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items.
failed
- A list of BatchResultErrorEntry items.public DeleteMessageBatchResult withFailed(BatchResultErrorEntry... failed)
A list of BatchResultErrorEntry items.
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.public DeleteMessageBatchResult withFailed(java.util.Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items.
failed
- A list of BatchResultErrorEntry items.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 DeleteMessageBatchResult clone()
clone
in class java.lang.Object