#[non_exhaustive]pub struct InvalidRequestDetailBuilder { /* private fields */ }Expand description
A builder for InvalidRequestDetail.
Implementations§
source§impl InvalidRequestDetailBuilder
impl InvalidRequestDetailBuilder
sourcepub fn reason(self, input: InvalidRequestDetailReason) -> Self
pub fn reason(self, input: InvalidRequestDetailReason) -> Self
Reason codes include the following values:
-
DOCUMENT_SIZE_EXCEEDED - Document size is too large. Check the size of your file and resubmit the request.
-
UNSUPPORTED_DOC_TYPE - Document type is not supported. Check the file type and resubmit the request.
-
PAGE_LIMIT_EXCEEDED - Too many pages in the document. Check the number of pages in your file and resubmit the request.
-
TEXTRACT_ACCESS_DENIED - Access denied to Amazon Textract. Verify that your account has permission to use Amazon Textract API operations and resubmit the request.
-
NOT_TEXTRACT_JSON - Document is not Amazon Textract JSON format. Verify the format and resubmit the request.
-
MISMATCHED_TOTAL_PAGE_COUNT - Check the number of pages in your file and resubmit the request.
-
INVALID_DOCUMENT - Invalid document. Check the file and resubmit the request.
sourcepub fn set_reason(self, input: Option<InvalidRequestDetailReason>) -> Self
pub fn set_reason(self, input: Option<InvalidRequestDetailReason>) -> Self
Reason codes include the following values:
-
DOCUMENT_SIZE_EXCEEDED - Document size is too large. Check the size of your file and resubmit the request.
-
UNSUPPORTED_DOC_TYPE - Document type is not supported. Check the file type and resubmit the request.
-
PAGE_LIMIT_EXCEEDED - Too many pages in the document. Check the number of pages in your file and resubmit the request.
-
TEXTRACT_ACCESS_DENIED - Access denied to Amazon Textract. Verify that your account has permission to use Amazon Textract API operations and resubmit the request.
-
NOT_TEXTRACT_JSON - Document is not Amazon Textract JSON format. Verify the format and resubmit the request.
-
MISMATCHED_TOTAL_PAGE_COUNT - Check the number of pages in your file and resubmit the request.
-
INVALID_DOCUMENT - Invalid document. Check the file and resubmit the request.
sourcepub fn get_reason(&self) -> &Option<InvalidRequestDetailReason>
pub fn get_reason(&self) -> &Option<InvalidRequestDetailReason>
Reason codes include the following values:
-
DOCUMENT_SIZE_EXCEEDED - Document size is too large. Check the size of your file and resubmit the request.
-
UNSUPPORTED_DOC_TYPE - Document type is not supported. Check the file type and resubmit the request.
-
PAGE_LIMIT_EXCEEDED - Too many pages in the document. Check the number of pages in your file and resubmit the request.
-
TEXTRACT_ACCESS_DENIED - Access denied to Amazon Textract. Verify that your account has permission to use Amazon Textract API operations and resubmit the request.
-
NOT_TEXTRACT_JSON - Document is not Amazon Textract JSON format. Verify the format and resubmit the request.
-
MISMATCHED_TOTAL_PAGE_COUNT - Check the number of pages in your file and resubmit the request.
-
INVALID_DOCUMENT - Invalid document. Check the file and resubmit the request.
sourcepub fn build(self) -> InvalidRequestDetail
pub fn build(self) -> InvalidRequestDetail
Consumes the builder and constructs a InvalidRequestDetail.
Trait Implementations§
source§impl Clone for InvalidRequestDetailBuilder
impl Clone for InvalidRequestDetailBuilder
source§fn clone(&self) -> InvalidRequestDetailBuilder
fn clone(&self) -> InvalidRequestDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InvalidRequestDetailBuilder
impl Debug for InvalidRequestDetailBuilder
source§impl Default for InvalidRequestDetailBuilder
impl Default for InvalidRequestDetailBuilder
source§fn default() -> InvalidRequestDetailBuilder
fn default() -> InvalidRequestDetailBuilder
source§impl PartialEq for InvalidRequestDetailBuilder
impl PartialEq for InvalidRequestDetailBuilder
source§fn eq(&self, other: &InvalidRequestDetailBuilder) -> bool
fn eq(&self, other: &InvalidRequestDetailBuilder) -> bool
self and other values to be equal, and is used
by ==.