Interface DataSource.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<DataSource.Builder,DataSource>
,SdkBuilder<DataSource.Builder,DataSource>
,SdkPojo
- Enclosing class:
- DataSource
public static interface DataSource.Builder extends SdkPojo, CopyableBuilder<DataSource.Builder,DataSource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DataSource.Builder
fileSystemDataSource(Consumer<FileSystemDataSource.Builder> fileSystemDataSource)
The file system that is associated with a channel.DataSource.Builder
fileSystemDataSource(FileSystemDataSource fileSystemDataSource)
The file system that is associated with a channel.default DataSource.Builder
s3DataSource(Consumer<S3DataSource.Builder> s3DataSource)
The S3 location of the data source that is associated with a channel.DataSource.Builder
s3DataSource(S3DataSource s3DataSource)
The S3 location of the data source that is associated with a channel.-
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, sdkFields
-
-
-
-
Method Detail
-
s3DataSource
DataSource.Builder s3DataSource(S3DataSource s3DataSource)
The S3 location of the data source that is associated with a channel.
- Parameters:
s3DataSource
- The S3 location of the data source that is associated with a channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3DataSource
default DataSource.Builder s3DataSource(Consumer<S3DataSource.Builder> s3DataSource)
The S3 location of the data source that is associated with a channel.
This is a convenience method that creates an instance of theS3DataSource.Builder
avoiding the need to create one manually viaS3DataSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tos3DataSource(S3DataSource)
.- Parameters:
s3DataSource
- a consumer that will call methods onS3DataSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
s3DataSource(S3DataSource)
-
fileSystemDataSource
DataSource.Builder fileSystemDataSource(FileSystemDataSource fileSystemDataSource)
The file system that is associated with a channel.
- Parameters:
fileSystemDataSource
- The file system that is associated with a channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemDataSource
default DataSource.Builder fileSystemDataSource(Consumer<FileSystemDataSource.Builder> fileSystemDataSource)
The file system that is associated with a channel.
This is a convenience method that creates an instance of theFileSystemDataSource.Builder
avoiding the need to create one manually viaFileSystemDataSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofileSystemDataSource(FileSystemDataSource)
.- Parameters:
fileSystemDataSource
- a consumer that will call methods onFileSystemDataSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
fileSystemDataSource(FileSystemDataSource)
-
-