pub struct Builder { /* private fields */ }Expand description
A builder for InvalidRequestException.
Implementations§
source§impl Builder
impl Builder
pub fn message(self, input: impl Into<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
pub fn reason(self, input: InvalidRequestReason) -> Self
pub fn set_reason(self, input: Option<InvalidRequestReason>) -> Self
sourcepub fn detail(self, input: InvalidRequestDetail) -> Self
pub fn detail(self, input: InvalidRequestDetail) -> Self
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.
sourcepub fn set_detail(self, input: Option<InvalidRequestDetail>) -> Self
pub fn set_detail(self, input: Option<InvalidRequestDetail>) -> Self
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.
sourcepub fn build(self) -> InvalidRequestException
pub fn build(self) -> InvalidRequestException
Consumes the builder and constructs a InvalidRequestException.