Class ChannelOptions.Builder

java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.ChannelOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ChannelOptions>
Enclosing interface:
ChannelOptions

@Stability(Experimental) public static final class ChannelOptions.Builder extends Object implements software.amazon.jsii.Builder<ChannelOptions>
A builder for ChannelOptions
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • channelName

      @Stability(Experimental) public ChannelOptions.Builder channelName(String channelName)
      Parameters:
      channelName - The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.
      Returns:
      this
    • description

      @Stability(Experimental) public ChannelOptions.Builder description(String description)
      Parameters:
      description - Enter any descriptive text that helps you to identify the channel.
      Returns:
      this
    • input

      @Stability(Experimental) public ChannelOptions.Builder input(InputConfiguration input)
      Sets the value of ChannelOptions.getInput()
      Parameters:
      input - Input configuration for the channel. Use InputConfiguration.hls() or InputConfiguration.cmaf() to create the configuration.
      Returns:
      this
    • removalPolicy

      @Stability(Experimental) public ChannelOptions.Builder removalPolicy(RemovalPolicy removalPolicy)
      Parameters:
      removalPolicy - Policy to apply when the channel is removed from the stack. Even though MediaPackage ChannelGroups, Channels and OriginEndpoints are technically stateful, their contents are transient and it is common to add and remove these while rearchitecting your application. The default is therefore DESTROY. Change it to RETAIN if the content (in a lookback window) are so valuable that accidentally losing it would be unacceptable.
      Returns:
      this
    • tags

      @Stability(Experimental) public ChannelOptions.Builder tags(Map<String,String> tags)
      Sets the value of ChannelOptions.getTags()
      Parameters:
      tags - Tags to add to the Channel.
      Returns:
      this
    • build

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