public static interface Document.Builder extends SdkPojo, CopyableBuilder<Document.Builder,Document>
Modifier and Type | Method and Description |
---|---|
Document.Builder |
bytes(SdkBytes bytes)
A blob of base64-encoded document bytes.
|
default Document.Builder |
s3Object(Consumer<S3Object.Builder> s3Object)
Identifies an S3 object as the document source.
|
Document.Builder |
s3Object(S3Object s3Object)
Identifies an S3 object as the document source.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Document.Builder bytes(SdkBytes bytes)
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.
bytes
- 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.
Document.Builder s3Object(S3Object s3Object)
Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.
s3Object
- Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3
bucket is 5 MB.default Document.Builder s3Object(Consumer<S3Object.Builder> s3Object)
Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.
This is a convenience that creates an instance of theS3Object.Builder
avoiding the need to create
one manually via S3Object.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to s3Object(S3Object)
.s3Object
- a consumer that will call methods on S3Object.Builder
s3Object(S3Object)
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.