Class ChannelPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.ChannelPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ChannelPolicyProps>
- Enclosing interface:
ChannelPolicyProps
@Stability(Experimental)
public static final class ChannelPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<ChannelPolicyProps>
A builder for
ChannelPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofChannelPolicyProps.getChannel()policyDocument(PolicyDocument policyDocument) Sets the value ofChannelPolicyProps.getPolicyDocument()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channel
Sets the value ofChannelPolicyProps.getChannel()- Parameters:
channel- Channel to apply the Channel Policy to. This parameter is required.- Returns:
this
-
policyDocument
@Stability(Experimental) public ChannelPolicyProps.Builder policyDocument(PolicyDocument policyDocument) Sets the value ofChannelPolicyProps.getPolicyDocument()- Parameters:
policyDocument- Initial policy document to apply.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ChannelPolicyProps>- Returns:
- a new instance of
ChannelPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-