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