Interface DocumentSource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DocumentSource.Builder,DocumentSource>,SdkBuilder<DocumentSource.Builder,DocumentSource>,SdkPojo
- Enclosing class:
- DocumentSource
@Mutable @NotThreadSafe public static interface DocumentSource.Builder extends SdkPojo, CopyableBuilder<DocumentSource.Builder,DocumentSource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DocumentSource.Builderbytes(SdkBytes bytes)The raw bytes for the document.default DocumentSource.Builders3Location(Consumer<S3Location.Builder> s3Location)The location of a document object in an Amazon S3 bucket.DocumentSource.Builders3Location(S3Location s3Location)The location of a document object in an Amazon S3 bucket.-
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
DocumentSource.Builder bytes(SdkBytes bytes)
The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.
- Parameters:
bytes- The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Location
DocumentSource.Builder s3Location(S3Location s3Location)
The location of a document object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.
- Parameters:
s3Location- The location of a document object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Location
default DocumentSource.Builder s3Location(Consumer<S3Location.Builder> s3Location)
The location of a document object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.
This is a convenience method that creates an instance of theS3Location.Builderavoiding the need to create one manually viaS3Location.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tos3Location(S3Location).- Parameters:
s3Location- a consumer that will call methods onS3Location.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
s3Location(S3Location)
-
-