public class BatchItemError
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getErrorCode()
The numeric error code of the error.
|
java.lang.String |
getErrorMessage()
A text description of the error.
|
java.lang.Integer |
getIndex()
The zero-based index of the document in the input list.
|
int |
hashCode() |
void |
setErrorCode(java.lang.String errorCode)
The numeric error code of the error.
|
void |
setErrorMessage(java.lang.String errorMessage)
A text description of the error.
|
void |
setIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BatchItemError |
withErrorCode(java.lang.String errorCode)
The numeric error code of the error.
|
BatchItemError |
withErrorMessage(java.lang.String errorMessage)
A text description of the error.
|
BatchItemError |
withIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
public java.lang.Integer getIndex()
The zero-based index of the document in the input list.
The zero-based index of the document in the input list.
public void setIndex(java.lang.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 BatchItemError withIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
Returns a reference to this object so that method calls can be chained together.
index
- The zero-based index of the document in the input list.
public java.lang.String getErrorCode()
The numeric error code of the error.
Constraints:
Length: 1 -
The numeric error code of the error.
public void setErrorCode(java.lang.String errorCode)
The numeric error code of the error.
Constraints:
Length: 1 -
errorCode
- The numeric error code of the error.
public BatchItemError withErrorCode(java.lang.String errorCode)
The numeric error code of the error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
errorCode
- The numeric error code of the error.
public java.lang.String getErrorMessage()
A text description of the error.
Constraints:
Length: 1 -
A text description of the error.
public void setErrorMessage(java.lang.String errorMessage)
A text description of the error.
Constraints:
Length: 1 -
errorMessage
- A text description of the error.
public BatchItemError withErrorMessage(java.lang.String errorMessage)
A text description of the error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
errorMessage
- A text description of the error.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.