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 Details

    • Builder

      public Builder()
  • Method Details

    • channelName

      @Stability(Stable) public Channel.Builder channelName(String channelName)
      Sets the value of Channel.getChannelName()
      Parameters:
      channelName - Name of the channel. This parameter is required.
      Returns:
      this
    • dataSource

      @Stability(Stable) public Channel.Builder dataSource(DataSource dataSource)
      Sets the value of Channel.getDataSource()
      Parameters:
      dataSource - Location of the channel data. This parameter is required.
      Returns:
      this
    • compressionType

      @Stability(Stable) public Channel.Builder compressionType(CompressionType compressionType)
      Parameters:
      compressionType - Compression type if training data is compressed.
      Returns:
      this
    • contentType

      @Stability(Stable) public Channel.Builder contentType(String contentType)
      Sets the value of Channel.getContentType()
      Parameters:
      contentType - The MIME type of the data.
      Returns:
      this
    • inputMode

      @Stability(Stable) public Channel.Builder inputMode(InputMode inputMode)
      Sets the value of Channel.getInputMode()
      Parameters:
      inputMode - Input mode to use for the data channel in a training job.
      Returns:
      this
    • recordWrapperType

      @Stability(Stable) public Channel.Builder recordWrapperType(RecordWrapperType recordWrapperType)
      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

      @Stability(Stable) public Channel.Builder shuffleConfig(ShuffleConfig shuffleConfig)
      Sets the value of Channel.getShuffleConfig()
      Parameters:
      shuffleConfig - Shuffle config option for input data in a channel.
      Returns:
      this
    • build

      @Stability(Stable) public Channel build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Channel>
      Returns:
      a new instance of Channel
      Throws:
      NullPointerException - if any required attribute was not provided