Interface FileSource.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<FileSource.Builder,FileSource>
,SdkBuilder<FileSource.Builder,FileSource>
,SdkPojo
- Enclosing class:
- FileSource
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.Builder
byteContent(Consumer<ByteContentFile.Builder> byteContent)
The data and the text of the attached files.FileSource.Builder
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.FileSource.Builder
s3Location(S3ObjectFile s3Location)
The s3 location of the files to attach.FileSource.Builder
sourceType(String sourceType)
The source type of the files to attach.FileSource.Builder
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 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.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:
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.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:
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
-
-