Class FlowEntitlementProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.FlowEntitlementProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FlowEntitlementProps>
- Enclosing interface:
FlowEntitlementProps
@Stability(Experimental)
public static final class FlowEntitlementProps.Builder
extends Object
implements software.amazon.jsii.Builder<FlowEntitlementProps>
A builder for
FlowEntitlementProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataTransferSubscriberFeePercent(Number dataTransferSubscriberFeePercent) Sets the value ofFlowEntitlementProps.getDataTransferSubscriberFeePercent()description(String description) Sets the value ofFlowEntitlementProps.getDescription()encryption(StaticKeyEncryption encryption) Sets the value ofFlowEntitlementProps.getEncryption()entitlementStatus(EntitlementStatus entitlementStatus) Sets the value ofFlowEntitlementProps.getEntitlementStatus()Sets the value ofFlowEntitlementProps.getFlow()flowEntitlementName(String flowEntitlementName) Sets the value ofFlowEntitlementProps.getFlowEntitlementName()subscribers(List<String> subscribers) Sets the value ofFlowEntitlementProps.getSubscribers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofFlowEntitlementProps.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
-
flow
Sets the value ofFlowEntitlementProps.getFlow()- Parameters:
flow- The flow to set the entitlement from. This parameter is required.- Returns:
this
-
subscribers
Sets the value ofFlowEntitlementProps.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(Experimental) public FlowEntitlementProps.Builder dataTransferSubscriberFeePercent(Number dataTransferSubscriberFeePercent) Sets the value ofFlowEntitlementProps.getDataTransferSubscriberFeePercent()- Parameters:
dataTransferSubscriberFeePercent- The percentage of the entitlement data transfer fee that you want the subscriber to be responsible for.- Returns:
this
-
encryption
@Stability(Experimental) public FlowEntitlementProps.Builder encryption(StaticKeyEncryption encryption) Sets the value ofFlowEntitlementProps.getEncryption()- Parameters:
encryption- Options for encrypting the entitlement. Only static key encryption is supported for entitlements.- Returns:
this
-
entitlementStatus
@Stability(Experimental) public FlowEntitlementProps.Builder entitlementStatus(EntitlementStatus entitlementStatus) Sets the value ofFlowEntitlementProps.getEntitlementStatus()- Parameters:
entitlementStatus- An indication of whether the new entitlement should be enabled or disabled as soon as it is created.- Returns:
this
-
flowEntitlementName
@Stability(Experimental) public FlowEntitlementProps.Builder flowEntitlementName(String flowEntitlementName) Sets the value ofFlowEntitlementProps.getFlowEntitlementName()- Parameters:
flowEntitlementName- The name of the entitlement. This value must be unique within the current flow.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FlowEntitlementProps>- Returns:
- a new instance of
FlowEntitlementProps - Throws:
NullPointerException- if any required attribute was not provided
-