@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchItemError extends Object implements Serializable, Cloneable, StructuredPojo
Describes an error that occurred while processing a document in a batch. The operation returns on
BatchItemError object for each document that contained an error.
| Constructor and Description |
|---|
BatchItemError() |
| Modifier and Type | Method and Description |
|---|---|
BatchItemError |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The numeric error code of the error.
|
String |
getErrorMessage()
A text description of the error.
|
Integer |
getIndex()
The zero-based index of the document in the input list.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setErrorCode(String errorCode)
The numeric error code of the error.
|
void |
setErrorMessage(String errorMessage)
A text description of the error.
|
void |
setIndex(Integer index)
The zero-based index of the document in the input list.
|
String |
toString()
Returns a string representation of this object.
|
BatchItemError |
withErrorCode(String errorCode)
The numeric error code of the error.
|
BatchItemError |
withErrorMessage(String errorMessage)
A text description of the error.
|
BatchItemError |
withIndex(Integer index)
The zero-based index of the document in the input list.
|
public void setIndex(Integer index)
The zero-based index of the document in the input list.
index - The zero-based index of the document in the input list.public Integer getIndex()
The zero-based index of the document in the input list.
public BatchItemError withIndex(Integer index)
The zero-based index of the document in the input list.
index - The zero-based index of the document in the input list.public void setErrorCode(String errorCode)
The numeric error code of the error.
errorCode - The numeric error code of the error.public String getErrorCode()
The numeric error code of the error.
public BatchItemError withErrorCode(String errorCode)
The numeric error code of the error.
errorCode - The numeric error code of the error.public void setErrorMessage(String errorMessage)
A text description of the error.
errorMessage - A text description of the error.public String getErrorMessage()
A text description of the error.
public BatchItemError withErrorMessage(String errorMessage)
A text description of the error.
errorMessage - A text description of the error.public String toString()
toString in class ObjectObject.toString()public BatchItemError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.