Interface FileSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FileSource.Builder,
,FileSource> SdkBuilder<FileSource.Builder,
,FileSource> SdkPojo
- Enclosing class:
FileSource
@Mutable
@NotThreadSafe
public static interface FileSource.Builder
extends SdkPojo, CopyableBuilder<FileSource.Builder,FileSource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault FileSource.Builder
byteContent
(Consumer<ByteContentFile.Builder> byteContent) The data and the text of the attached files.byteContent
(ByteContentFile byteContent) The data and the text of the attached files.default FileSource.Builder
s3Location
(Consumer<S3ObjectFile.Builder> s3Location) The s3 location of the files to attach.s3Location
(S3ObjectFile s3Location) The s3 location of the files to attach.sourceType
(String sourceType) The source type of the files to attach.sourceType
(FileSourceType sourceType) The source type of the files to attach.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 Details
-
byteContent
The data and the text of the attached files.
- Parameters:
byteContent
- The data and the text of the attached files.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
byteContent
The data and the text of the attached files.
This is a convenience method that creates an instance of theByteContentFile.Builder
avoiding the need to create one manually viaByteContentFile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobyteContent(ByteContentFile)
.- Parameters:
byteContent
- a consumer that will call methods onByteContentFile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
s3Location
The s3 location of the files to attach.
- Parameters:
s3Location
- The s3 location of the files to attach.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Location
The s3 location of the files to attach.
This is a convenience method that creates an instance of theS3ObjectFile.Builder
avoiding the need to create one manually viaS3ObjectFile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tos3Location(S3ObjectFile)
.- Parameters:
s3Location
- a consumer that will call methods onS3ObjectFile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceType
The source type of the files to attach.
- Parameters:
sourceType
- The source type of the files to attach.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceType
The source type of the files to attach.
- Parameters:
sourceType
- The source type of the files to attach.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-