Class CfnChannelPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.CfnChannelPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelPolicyProps>
- Enclosing interface:
CfnChannelPolicyProps
@Stability(Stable)
public static final class CfnChannelPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelPolicyProps>
A builder for
CfnChannelPolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.channelGroupName
(String channelGroupName) Sets the value ofCfnChannelPolicyProps.getChannelGroupName()
channelName
(String channelName) Sets the value ofCfnChannelPolicyProps.getChannelName()
Sets the value ofCfnChannelPolicyProps.getPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channelGroupName
Sets the value ofCfnChannelPolicyProps.getChannelGroupName()
- Parameters:
channelGroupName
- The name of the channel group associated with the channel policy. This parameter is required.- Returns:
this
-
channelName
Sets the value ofCfnChannelPolicyProps.getChannelName()
- Parameters:
channelName
- The name of the channel associated with the channel policy. This parameter is required.- Returns:
this
-
policy
Sets the value ofCfnChannelPolicyProps.getPolicy()
- Parameters:
policy
- The policy associated with the channel. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannelPolicyProps>
- Returns:
- a new instance of
CfnChannelPolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-