public class DeleteMessageBatchResult extends AmazonWebServiceResult<ResponseMetadata> 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() |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<DeleteMessageBatchResultEntry> getSuccessful()
A list of DeleteMessageBatchResultEntry items.
public void setSuccessful(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(Collection<DeleteMessageBatchResultEntry> successful)
A list of DeleteMessageBatchResultEntry items.
successful
- A list of DeleteMessageBatchResultEntry items.public List<BatchResultErrorEntry> getFailed()
A list of BatchResultErrorEntry items.
public void setFailed(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(Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items.
failed
- A list of BatchResultErrorEntry items.public String toString()
toString
in class Object
Object.toString()
public DeleteMessageBatchResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.