Class CfnFlowEntitlementProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.CfnFlowEntitlementProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowEntitlementProps>
- Enclosing interface:
CfnFlowEntitlementProps
@Stability(Stable)
public static final class CfnFlowEntitlementProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowEntitlementProps>
A builder for
CfnFlowEntitlementProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dataTransferSubscriberFeePercent
(Number dataTransferSubscriberFeePercent) Sets the value ofCfnFlowEntitlementProps.getDataTransferSubscriberFeePercent()
description
(String description) Sets the value ofCfnFlowEntitlementProps.getDescription()
encryption
(IResolvable encryption) Sets the value ofCfnFlowEntitlementProps.getEncryption()
encryption
(CfnFlowEntitlement.EncryptionProperty encryption) Sets the value ofCfnFlowEntitlementProps.getEncryption()
entitlementStatus
(String entitlementStatus) Sets the value ofCfnFlowEntitlementProps.getEntitlementStatus()
Sets the value ofCfnFlowEntitlementProps.getFlowArn()
Sets the value ofCfnFlowEntitlementProps.getName()
subscribers
(List<String> subscribers) Sets the value ofCfnFlowEntitlementProps.getSubscribers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnFlowEntitlementProps.getDescription()
- Parameters:
description
- A description of the entitlement. This parameter is required. This description appears only on the MediaConnect console and is not visible outside of the current AWS account.- Returns:
this
-
flowArn
Sets the value ofCfnFlowEntitlementProps.getFlowArn()
- Parameters:
flowArn
- The Amazon Resource Name (ARN) of the flow. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnFlowEntitlementProps.getName()
- Parameters:
name
- The name of the entitlement. This parameter is required. This value must be unique within the current flow.- Returns:
this
-
subscribers
Sets the value ofCfnFlowEntitlementProps.getSubscribers()
- Parameters:
subscribers
- The AWS account IDs that you want to share your content with. This parameter is required. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.- Returns:
this
-
dataTransferSubscriberFeePercent
@Stability(Stable) public CfnFlowEntitlementProps.Builder dataTransferSubscriberFeePercent(Number dataTransferSubscriberFeePercent) Sets the value ofCfnFlowEntitlementProps.getDataTransferSubscriberFeePercent()
- Parameters:
dataTransferSubscriberFeePercent
- The percentage of the entitlement data transfer fee that you want the subscriber to be responsible for.- Returns:
this
-
encryption
Sets the value ofCfnFlowEntitlementProps.getEncryption()
- Parameters:
encryption
- The type of encryption that MediaConnect will use on the output that is associated with the entitlement.- Returns:
this
-
encryption
@Stability(Stable) public CfnFlowEntitlementProps.Builder encryption(CfnFlowEntitlement.EncryptionProperty encryption) Sets the value ofCfnFlowEntitlementProps.getEncryption()
- Parameters:
encryption
- The type of encryption that MediaConnect will use on the output that is associated with the entitlement.- Returns:
this
-
entitlementStatus
@Stability(Stable) public CfnFlowEntitlementProps.Builder entitlementStatus(String entitlementStatus) Sets the value ofCfnFlowEntitlementProps.getEntitlementStatus()
- Parameters:
entitlementStatus
- An indication of whether the new entitlement should be enabled or disabled as soon as it is created. If you don’t specify the entitlementStatus field in your request, MediaConnect sets it to ENABLED.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlowEntitlementProps>
- Returns:
- a new instance of
CfnFlowEntitlementProps
- Throws:
NullPointerException
- if any required attribute was not provided
-