@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ErrorsListItem extends Object implements Serializable, Cloneable, StructuredPojo
Text extraction encountered one or more page-level errors in the input document.
The ErrorCode
contains one of the following values:
TEXTRACT_BAD_PAGE - Amazon Textract cannot read the page. For more information about page limits in Amazon Textract, see Page Quotas in Amazon Textract.
TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED - The number of requests exceeded your throughput limit. For more information about throughput quotas in Amazon Textract, see Default quotas in Amazon Textract.
PAGE_CHARACTERS_EXCEEDED - Too many text characters on the page (10,000 characters maximum).
PAGE_SIZE_EXCEEDED - The maximum page size is 10 MB.
INTERNAL_SERVER_ERROR - The request encountered a service issue. Try the API request again.
Constructor and Description |
---|
ErrorsListItem() |
Modifier and Type | Method and Description |
---|---|
ErrorsListItem |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
Error code for the cause of the error.
|
String |
getErrorMessage()
Text message explaining the reason for the error.
|
Integer |
getPage()
Page number where the error occurred.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
Error code for the cause of the error.
|
void |
setErrorMessage(String errorMessage)
Text message explaining the reason for the error.
|
void |
setPage(Integer page)
Page number where the error occurred.
|
String |
toString()
Returns a string representation of this object.
|
ErrorsListItem |
withErrorCode(PageBasedErrorCode errorCode)
Error code for the cause of the error.
|
ErrorsListItem |
withErrorCode(String errorCode)
Error code for the cause of the error.
|
ErrorsListItem |
withErrorMessage(String errorMessage)
Text message explaining the reason for the error.
|
ErrorsListItem |
withPage(Integer page)
Page number where the error occurred.
|
public void setPage(Integer page)
Page number where the error occurred.
page
- Page number where the error occurred.public Integer getPage()
Page number where the error occurred.
public ErrorsListItem withPage(Integer page)
Page number where the error occurred.
page
- Page number where the error occurred.public void setErrorCode(String errorCode)
Error code for the cause of the error.
errorCode
- Error code for the cause of the error.PageBasedErrorCode
public String getErrorCode()
Error code for the cause of the error.
PageBasedErrorCode
public ErrorsListItem withErrorCode(String errorCode)
Error code for the cause of the error.
errorCode
- Error code for the cause of the error.PageBasedErrorCode
public ErrorsListItem withErrorCode(PageBasedErrorCode errorCode)
Error code for the cause of the error.
errorCode
- Error code for the cause of the error.PageBasedErrorCode
public void setErrorMessage(String errorMessage)
Text message explaining the reason for the error.
errorMessage
- Text message explaining the reason for the error.public String getErrorMessage()
Text message explaining the reason for the error.
public ErrorsListItem withErrorMessage(String errorMessage)
Text message explaining the reason for the error.
errorMessage
- Text message explaining the reason for the error.public String toString()
toString
in class Object
Object.toString()
public ErrorsListItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.