@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InvalidRequestDetail extends Object implements Serializable, Cloneable, StructuredPojo
Provides additional detail about why the request failed:
Document size is too large - Check the size of your file and resubmit the request.
Document type is not supported - Check the file type and resubmit the request.
Too many pages in the document - Check the number of pages in your file and resubmit the request.
Access denied to Amazon Textract - Verify that your account has permission to use Amazon Textract API operations and resubmit the request.
Constructor and Description |
---|
InvalidRequestDetail() |
Modifier and Type | Method and Description |
---|---|
InvalidRequestDetail |
clone() |
boolean |
equals(Object obj) |
String |
getReason()
Reason code is
INVALID_DOCUMENT . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReason(String reason)
Reason code is
INVALID_DOCUMENT . |
String |
toString()
Returns a string representation of this object.
|
InvalidRequestDetail |
withReason(InvalidRequestDetailReason reason)
Reason code is
INVALID_DOCUMENT . |
InvalidRequestDetail |
withReason(String reason)
Reason code is
INVALID_DOCUMENT . |
public void setReason(String reason)
Reason code is INVALID_DOCUMENT
.
reason
- Reason code is INVALID_DOCUMENT
.InvalidRequestDetailReason
public String getReason()
Reason code is INVALID_DOCUMENT
.
INVALID_DOCUMENT
.InvalidRequestDetailReason
public InvalidRequestDetail withReason(String reason)
Reason code is INVALID_DOCUMENT
.
reason
- Reason code is INVALID_DOCUMENT
.InvalidRequestDetailReason
public InvalidRequestDetail withReason(InvalidRequestDetailReason reason)
Reason code is INVALID_DOCUMENT
.
reason
- Reason code is INVALID_DOCUMENT
.InvalidRequestDetailReason
public String toString()
toString
in class Object
Object.toString()
public InvalidRequestDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.