Class Channel.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.Channel.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Channel>
- Enclosing interface:
- Channel
@Stability(Stable)
public static final class Channel.Builder
extends Object
implements software.amazon.jsii.Builder<Channel>
A builder for
Channel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.channelName
(String channelName) Sets the value ofChannel.getChannelName()
compressionType
(CompressionType compressionType) Sets the value ofChannel.getCompressionType()
contentType
(String contentType) Sets the value ofChannel.getContentType()
dataSource
(DataSource dataSource) Sets the value ofChannel.getDataSource()
Sets the value ofChannel.getInputMode()
recordWrapperType
(RecordWrapperType recordWrapperType) Sets the value ofChannel.getRecordWrapperType()
shuffleConfig
(ShuffleConfig shuffleConfig) Sets the value ofChannel.getShuffleConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channelName
Sets the value ofChannel.getChannelName()
- Parameters:
channelName
- Name of the channel. This parameter is required.- Returns:
this
-
dataSource
Sets the value ofChannel.getDataSource()
- Parameters:
dataSource
- Location of the channel data. This parameter is required.- Returns:
this
-
compressionType
Sets the value ofChannel.getCompressionType()
- Parameters:
compressionType
- Compression type if training data is compressed.- Returns:
this
-
contentType
Sets the value ofChannel.getContentType()
- Parameters:
contentType
- The MIME type of the data.- Returns:
this
-
inputMode
Sets the value ofChannel.getInputMode()
- Parameters:
inputMode
- Input mode to use for the data channel in a training job.- Returns:
this
-
recordWrapperType
Sets the value ofChannel.getRecordWrapperType()
- Parameters:
recordWrapperType
- Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute.- Returns:
this
-
shuffleConfig
Sets the value ofChannel.getShuffleConfig()
- Parameters:
shuffleConfig
- Shuffle config option for input data in a channel.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Channel>
- Returns:
- a new instance of
Channel
- Throws:
NullPointerException
- if any required attribute was not provided
-