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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FileSource.BuilderbyteContent(Consumer<ByteContentFile.Builder> byteContent)The data and the text of the attached files.FileSource.BuilderbyteContent(ByteContentFile byteContent)The data and the text of the attached files.default FileSource.Builders3Location(Consumer<S3ObjectFile.Builder> s3Location)The s3 location of the files to attach.FileSource.Builders3Location(S3ObjectFile s3Location)The s3 location of the files to attach.FileSource.BuildersourceType(String sourceType)The source type of the files to attach.FileSource.BuildersourceType(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 Detail
-
byteContent
FileSource.Builder byteContent(ByteContentFile 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
default FileSource.Builder byteContent(Consumer<ByteContentFile.Builder> byteContent)
The data and the text of the attached files.
This is a convenience method that creates an instance of theByteContentFile.Builderavoiding the need to create one manually viaByteContentFile.builder().When the
Consumercompletes,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:
byteContent(ByteContentFile)
-
s3Location
FileSource.Builder s3Location(S3ObjectFile 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
default FileSource.Builder s3Location(Consumer<S3ObjectFile.Builder> s3Location)
The s3 location of the files to attach.
This is a convenience method that creates an instance of theS3ObjectFile.Builderavoiding the need to create one manually viaS3ObjectFile.builder().When the
Consumercompletes,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:
s3Location(S3ObjectFile)
-
sourceType
FileSource.Builder sourceType(String 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:
FileSourceType,FileSourceType
-
sourceType
FileSource.Builder sourceType(FileSourceType 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:
FileSourceType,FileSourceType
-
-