com.amazonaws.services.sqs.model
Class BatchResultErrorEntry

java.lang.Object
  extended by com.amazonaws.services.sqs.model.BatchResultErrorEntry

public class BatchResultErrorEntry
extends Object

This is used in the responses of batch API to give a detailed description of the result of an operation on each entry in the request.


Constructor Summary
BatchResultErrorEntry()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCode()
          An error code representing why the operation failed on this entry.
 String getId()
          The id of an entry in a batch request.
 String getMessage()
          A message explaining why the operation failed on this entry.
 Boolean getSenderFault()
          Whether the error happened due to the sender's fault.
 int hashCode()
           
 Boolean isSenderFault()
          Whether the error happened due to the sender's fault.
 void setCode(String code)
          An error code representing why the operation failed on this entry.
 void setId(String id)
          The id of an entry in a batch request.
 void setMessage(String message)
          A message explaining why the operation failed on this entry.
 void setSenderFault(Boolean senderFault)
          Whether the error happened due to the sender's fault.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BatchResultErrorEntry withCode(String code)
          An error code representing why the operation failed on this entry.
 BatchResultErrorEntry withId(String id)
          The id of an entry in a batch request.
 BatchResultErrorEntry withMessage(String message)
          A message explaining why the operation failed on this entry.
 BatchResultErrorEntry withSenderFault(Boolean senderFault)
          Whether the error happened due to the sender's fault.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchResultErrorEntry

public BatchResultErrorEntry()
Method Detail

getId

public String getId()
The id of an entry in a batch request.

Returns:
The id of an entry in a batch request.

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.

withId

public BatchResultErrorEntry withId(String id)
The id of an entry in a batch request.

Returns a reference to this object so that method calls can be chained together.

Parameters:
id - The id of an entry in a batch request.
Returns:
A reference to this updated 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.

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.

withSenderFault

public BatchResultErrorEntry withSenderFault(Boolean senderFault)
Whether the error happened due to the sender's fault.

Returns a reference to this object so that method calls can be chained together.

Parameters:
senderFault - Whether the error happened due to the sender's fault.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

getCode

public String getCode()
An error code representing why the operation failed on this entry.

Returns:
An error code representing why the operation failed on this entry.

setCode

public void setCode(String code)
An error code representing why the operation failed on this entry.

Parameters:
code - An error code representing why the operation failed on this entry.

withCode

public BatchResultErrorEntry withCode(String code)
An error code representing why the operation failed on this entry.

Returns a reference to this object so that method calls can be chained together.

Parameters:
code - An error code representing why the operation failed on this entry.
Returns:
A reference to this updated object so that method calls can be chained together.

getMessage

public String getMessage()
A message explaining why the operation failed on this entry.

Returns:
A message explaining why the operation failed on this entry.

setMessage

public void setMessage(String message)
A message explaining why the operation failed on this entry.

Parameters:
message - A message explaining why the operation failed on this entry.

withMessage

public BatchResultErrorEntry withMessage(String message)
A message explaining why the operation failed on this entry.

Returns a reference to this object so that method calls can be chained together.

Parameters:
message - A message explaining why the operation failed on this entry.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.