Interface Document.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Document.Builder,Document>,SdkBuilder<Document.Builder,Document>,SdkPojo
- Enclosing class:
- Document
public static interface Document.Builder extends SdkPojo, CopyableBuilder<Document.Builder,Document>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Document.Builderbytes(SdkBytes bytes)A blob of base64-encoded document bytes.default Document.Builders3Object(Consumer<S3Object.Builder> s3Object)Identifies an S3 object as the document source.Document.Builders3Object(S3Object s3Object)Identifies an S3 object as the document source.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
bytes
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
Bytesfield.- Parameters:
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
Bytesfield.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Object
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Object
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 method that creates an instance of theS3Object.Builderavoiding the need to create one manually viaS3Object.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tos3Object(S3Object).- Parameters:
s3Object- a consumer that will call methods onS3Object.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
s3Object(S3Object)
-
-