Class ChannelGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.ChannelGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ChannelGroupProps>
- Enclosing interface:
ChannelGroupProps
@Stability(Experimental)
public static final class ChannelGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<ChannelGroupProps>
A builder for
ChannelGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.channelGroupName(String channelGroupName) Sets the value ofChannelGroupProps.getChannelGroupName()description(String description) Sets the value ofChannelGroupProps.getDescription()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofChannelGroupProps.getRemovalPolicy()Sets the value ofChannelGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channelGroupName
Sets the value ofChannelGroupProps.getChannelGroupName()- Parameters:
channelGroupName- The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.- Returns:
this
-
description
Sets the value ofChannelGroupProps.getDescription()- Parameters:
description- The description for your channel group.- Returns:
this
-
removalPolicy
@Stability(Experimental) public ChannelGroupProps.Builder removalPolicy(RemovalPolicy removalPolicy) Sets the value ofChannelGroupProps.getRemovalPolicy()- Parameters:
removalPolicy- Policy to apply when the channel group 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 thereforeDESTROY. Change it toRETAINif the content (in a lookback window) are so valuable that accidentally losing it would be unacceptable.- Returns:
this
-
tags
Sets the value ofChannelGroupProps.getTags()- Parameters:
tags- Tags to add to the Channel Group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ChannelGroupProps>- Returns:
- a new instance of
ChannelGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-