Class DeleteMessageBatchResult
- java.lang.Object
-
- com.amazonaws.services.sqs.model.DeleteMessageBatchResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeleteMessageBatchResult()
-
Method Summary
-
-
-
Method Detail
-
getSuccessful
public List<DeleteMessageBatchResultEntry> getSuccessful()
A list of DeleteMessageBatchResultEntry items.
- Returns:
- A list of DeleteMessageBatchResultEntry items.
-
setSuccessful
public void setSuccessful(Collection<DeleteMessageBatchResultEntry> successful)
A list of DeleteMessageBatchResultEntry items.
- Parameters:
successful
- A list of DeleteMessageBatchResultEntry items.
-
withSuccessful
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)
orwithSuccessful(java.util.Collection)
if you want to override the existing values.- Parameters:
successful
- A list of DeleteMessageBatchResultEntry items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSuccessful
public DeleteMessageBatchResult withSuccessful(Collection<DeleteMessageBatchResultEntry> successful)
A list of DeleteMessageBatchResultEntry items.
- Parameters:
successful
- A list of DeleteMessageBatchResultEntry items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFailed
public List<BatchResultErrorEntry> getFailed()
A list of BatchResultErrorEntry items.
- Returns:
- A list of BatchResultErrorEntry items.
-
setFailed
public void setFailed(Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items.
- Parameters:
failed
- A list of BatchResultErrorEntry items.
-
withFailed
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)
orwithFailed(java.util.Collection)
if you want to override the existing values.- Parameters:
failed
- A list of BatchResultErrorEntry items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withFailed
public DeleteMessageBatchResult withFailed(Collection<BatchResultErrorEntry> failed)
A list of BatchResultErrorEntry items.
- Parameters:
failed
- A list of BatchResultErrorEntry items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DeleteMessageBatchResult clone()
-
-