Class BatchResultErrorEntry
- java.lang.Object
-
- com.amazonaws.services.sqs.model.BatchResultErrorEntry
-
- All Implemented Interfaces:
Serializable,Cloneable
public class BatchResultErrorEntry extends Object implements Serializable, Cloneable
This is used in the responses of batch API to give a detailed description of the result of an action on each entry in the request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BatchResultErrorEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchResultErrorEntryclone()booleanequals(Object obj)StringgetCode()An error code representing why the action failed on this entry.StringgetId()The id of an entry in a batch request.StringgetMessage()A message explaining why the action failed on this entry.BooleangetSenderFault()Whether the error happened due to the sender's fault.inthashCode()BooleanisSenderFault()Whether the error happened due to the sender's fault.voidsetCode(String code)An error code representing why the action failed on this entry.voidsetId(String id)The id of an entry in a batch request.voidsetMessage(String message)A message explaining why the action failed on this entry.voidsetSenderFault(Boolean senderFault)Whether the error happened due to the sender's fault.StringtoString()Returns a string representation of this object; useful for testing and debugging.BatchResultErrorEntrywithCode(String code)An error code representing why the action failed on this entry.BatchResultErrorEntrywithId(String id)The id of an entry in a batch request.BatchResultErrorEntrywithMessage(String message)A message explaining why the action failed on this entry.BatchResultErrorEntrywithSenderFault(Boolean senderFault)Whether the error happened due to the sender's fault.
-
-
-
Method Detail
-
setId
public void setId(String id)
The id of an entry in a batch request.
- Parameters:
id- The id of an entry in a batch request.
-
getId
public String getId()
The id of an entry in a batch request.
- Returns:
- The id of an entry in a batch request.
-
withId
public BatchResultErrorEntry withId(String id)
The id of an entry in a batch request.
- Parameters:
id- The id of an entry in a batch request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSenderFault
public void setSenderFault(Boolean senderFault)
Whether the error happened due to the sender's fault.
- Parameters:
senderFault- Whether the error happened due to the sender's fault.
-
getSenderFault
public Boolean getSenderFault()
Whether the error happened due to the sender's fault.
- Returns:
- Whether the error happened due to the sender's fault.
-
withSenderFault
public BatchResultErrorEntry withSenderFault(Boolean senderFault)
Whether the error happened due to the sender's fault.
- Parameters:
senderFault- Whether the error happened due to the sender's fault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSenderFault
public Boolean isSenderFault()
Whether the error happened due to the sender's fault.
- Returns:
- Whether the error happened due to the sender's fault.
-
setCode
public void setCode(String code)
An error code representing why the action failed on this entry.
- Parameters:
code- An error code representing why the action failed on this entry.
-
getCode
public String getCode()
An error code representing why the action failed on this entry.
- Returns:
- An error code representing why the action failed on this entry.
-
withCode
public BatchResultErrorEntry withCode(String code)
An error code representing why the action failed on this entry.
- Parameters:
code- An error code representing why the action failed on this entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
public void setMessage(String message)
A message explaining why the action failed on this entry.
- Parameters:
message- A message explaining why the action failed on this entry.
-
getMessage
public String getMessage()
A message explaining why the action failed on this entry.
- Returns:
- A message explaining why the action failed on this entry.
-
withMessage
public BatchResultErrorEntry withMessage(String message)
A message explaining why the action failed on this entry.
- Parameters:
message- A message explaining why the action failed on this entry.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BatchResultErrorEntry clone()
-
-