Struct aws_sdk_textract::model::document::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Document
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn bytes(self, input: Blob) -> Self
pub fn bytes(self, input: Blob) -> Self
A blob of base64-encoded document bytes. The maximum size of a document that's provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes
field.
sourcepub fn set_bytes(self, input: Option<Blob>) -> Self
pub fn set_bytes(self, input: Option<Blob>) -> Self
A blob of base64-encoded document bytes. The maximum size of a document that's provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes
field.
sourcepub fn s3_object(self, input: S3Object) -> Self
pub fn s3_object(self, input: S3Object) -> Self
Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.
sourcepub fn set_s3_object(self, input: Option<S3Object>) -> Self
pub fn set_s3_object(self, input: Option<S3Object>) -> Self
Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.