public class DeleteMessageBatchResult extends Object implements Serializable, 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.
Constructor and Description |
---|
DeleteMessageBatchResult() |
public List<DeleteMessageBatchResultEntry> getSuccessful()
public void setSuccessful(Collection<DeleteMessageBatchResultEntry> successful)
successful
- A list of DeleteMessageBatchResultEntry items.public DeleteMessageBatchResult withSuccessful(DeleteMessageBatchResultEntry... 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 DeleteMessageBatchResultEntry items.public DeleteMessageBatchResult withSuccessful(Collection<DeleteMessageBatchResultEntry> successful)
Returns a reference to this object so that method calls can be chained together.
successful
- A list of DeleteMessageBatchResultEntry items.public List<BatchResultErrorEntry> getFailed()
public void setFailed(Collection<BatchResultErrorEntry> failed)
failed
- A list of BatchResultErrorEntry items.public DeleteMessageBatchResult 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.public DeleteMessageBatchResult withFailed(Collection<BatchResultErrorEntry> failed)
Returns a reference to this object so that method calls can be chained together.
failed
- A list of BatchResultErrorEntry items.public String toString()
toString
in class Object
Object.toString()
public DeleteMessageBatchResult clone()
Copyright © 2015. All rights reserved.