Struct aws_sdk_textract::input::detect_document_text_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DetectDocumentTextInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn document(self, input: Document) -> Self
pub fn document(self, input: Document) -> Self
The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that are passed using the Bytes
field.
sourcepub fn set_document(self, input: Option<Document>) -> Self
pub fn set_document(self, input: Option<Document>) -> Self
The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that are passed using the Bytes
field.
sourcepub fn build(self) -> Result<DetectDocumentTextInput, BuildError>
pub fn build(self) -> Result<DetectDocumentTextInput, BuildError>
Consumes the builder and constructs a DetectDocumentTextInput
.