Class CfnFlowSourceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.mediaconnect.CfnFlowSourceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowSourceMixinProps>
- Enclosing interface:
CfnFlowSourceMixinProps
@Stability(Stable)
public static final class CfnFlowSourceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowSourceMixinProps>
A builder for
CfnFlowSourceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.decryption(CfnFlowSourcePropsMixin.EncryptionProperty decryption) Sets the value ofCfnFlowSourceMixinProps.getDecryption()decryption(IResolvable decryption) Sets the value ofCfnFlowSourceMixinProps.getDecryption()description(String description) Sets the value ofCfnFlowSourceMixinProps.getDescription()entitlementArn(String entitlementArn) Sets the value ofCfnFlowSourceMixinProps.getEntitlementArn()Sets the value ofCfnFlowSourceMixinProps.getFlowArn()gatewayBridgeSource(CfnFlowSourcePropsMixin.GatewayBridgeSourceProperty gatewayBridgeSource) Sets the value ofCfnFlowSourceMixinProps.getGatewayBridgeSource()gatewayBridgeSource(IResolvable gatewayBridgeSource) Sets the value ofCfnFlowSourceMixinProps.getGatewayBridgeSource()ingestPort(Number ingestPort) Sets the value ofCfnFlowSourceMixinProps.getIngestPort()maxBitrate(Number maxBitrate) Sets the value ofCfnFlowSourceMixinProps.getMaxBitrate()maxLatency(Number maxLatency) Sets the value ofCfnFlowSourceMixinProps.getMaxLatency()minLatency(Number minLatency) Sets the value ofCfnFlowSourceMixinProps.getMinLatency()Sets the value ofCfnFlowSourceMixinProps.getName()Sets the value ofCfnFlowSourceMixinProps.getProtocol()senderControlPort(Number senderControlPort) Sets the value ofCfnFlowSourceMixinProps.getSenderControlPort()senderIpAddress(String senderIpAddress) Sets the value ofCfnFlowSourceMixinProps.getSenderIpAddress()sourceListenerAddress(String sourceListenerAddress) Sets the value ofCfnFlowSourceMixinProps.getSourceListenerAddress()sourceListenerPort(Number sourceListenerPort) Sets the value ofCfnFlowSourceMixinProps.getSourceListenerPort()Sets the value ofCfnFlowSourceMixinProps.getStreamId()vpcInterfaceName(String vpcInterfaceName) Sets the value ofCfnFlowSourceMixinProps.getVpcInterfaceName()whitelistCidr(String whitelistCidr) Sets the value ofCfnFlowSourceMixinProps.getWhitelistCidr()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
decryption
Sets the value ofCfnFlowSourceMixinProps.getDecryption()- Parameters:
decryption- The type of encryption that is used on the content ingested from this source. Allowable encryption types: static-key.- Returns:
this
-
decryption
@Stability(Stable) public CfnFlowSourceMixinProps.Builder decryption(CfnFlowSourcePropsMixin.EncryptionProperty decryption) Sets the value ofCfnFlowSourceMixinProps.getDecryption()- Parameters:
decryption- The type of encryption that is used on the content ingested from this source. Allowable encryption types: static-key.- Returns:
this
-
description
Sets the value ofCfnFlowSourceMixinProps.getDescription()- Parameters:
description- A description for the source. This value is not used or seen outside of the current MediaConnect account.- Returns:
this
-
entitlementArn
Sets the value ofCfnFlowSourceMixinProps.getEntitlementArn()- Parameters:
entitlementArn- The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow.- Returns:
this
-
flowArn
Sets the value ofCfnFlowSourceMixinProps.getFlowArn()- Parameters:
flowArn- The Amazon Resource Name (ARN) of the flow this source is connected to. The flow must have Failover enabled to add an additional source.- Returns:
this
-
gatewayBridgeSource
@Stability(Stable) public CfnFlowSourceMixinProps.Builder gatewayBridgeSource(IResolvable gatewayBridgeSource) Sets the value ofCfnFlowSourceMixinProps.getGatewayBridgeSource()- Parameters:
gatewayBridgeSource- The bridge's source.- Returns:
this
-
gatewayBridgeSource
@Stability(Stable) public CfnFlowSourceMixinProps.Builder gatewayBridgeSource(CfnFlowSourcePropsMixin.GatewayBridgeSourceProperty gatewayBridgeSource) Sets the value ofCfnFlowSourceMixinProps.getGatewayBridgeSource()- Parameters:
gatewayBridgeSource- The bridge's source.- Returns:
this
-
ingestPort
Sets the value ofCfnFlowSourceMixinProps.getIngestPort()- Parameters:
ingestPort- The port that the flow listens on for incoming content. If the protocol of the source is Zixi, the port must be set to 2088.- Returns:
this
-
maxBitrate
Sets the value ofCfnFlowSourceMixinProps.getMaxBitrate()- Parameters:
maxBitrate- The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams.- Returns:
this
-
maxLatency
Sets the value ofCfnFlowSourceMixinProps.getMaxLatency()- Parameters:
maxLatency- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.- Returns:
this
-
minLatency
Sets the value ofCfnFlowSourceMixinProps.getMinLatency()- Parameters:
minLatency- The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.- Returns:
this
-
name
Sets the value ofCfnFlowSourceMixinProps.getName()- Parameters:
name- The name of the source.- Returns:
this
-
protocol
Sets the value ofCfnFlowSourceMixinProps.getProtocol()- Parameters:
protocol- The protocol that the source uses to deliver the content to MediaConnect. Adding additional sources to an existing flow requires Failover to be enabled. When you enable Failover, the additional source must use the same protocol as the existing source. Only the following protocols support failover: Zixi-push, RTP-FEC, RTP, RIST and SRT protocols.If you use failover with SRT caller or listener, the
FailoverModeproperty must be set toFAILOVER. TheFailoverModeproperty is found in theFailoverConfigresource of the same flow ARN you used for the source'sFlowArnproperty. SRT caller/listener does not support merge mode failover.- Returns:
this
-
senderControlPort
@Stability(Stable) public CfnFlowSourceMixinProps.Builder senderControlPort(Number senderControlPort) Sets the value ofCfnFlowSourceMixinProps.getSenderControlPort()- Parameters:
senderControlPort- The port that the flow uses to send outbound requests to initiate connection with the sender.- Returns:
this
-
senderIpAddress
Sets the value ofCfnFlowSourceMixinProps.getSenderIpAddress()- Parameters:
senderIpAddress- The IP address that the flow communicates with to initiate connection with the sender.- Returns:
this
-
sourceListenerAddress
@Stability(Stable) public CfnFlowSourceMixinProps.Builder sourceListenerAddress(String sourceListenerAddress) Sets the value ofCfnFlowSourceMixinProps.getSourceListenerAddress()- Parameters:
sourceListenerAddress- Source IP or domain name for SRT-caller protocol.- Returns:
this
-
sourceListenerPort
@Stability(Stable) public CfnFlowSourceMixinProps.Builder sourceListenerPort(Number sourceListenerPort) Sets the value ofCfnFlowSourceMixinProps.getSourceListenerPort()- Parameters:
sourceListenerPort- Source port for SRT-caller protocol.- Returns:
this
-
streamId
Sets the value ofCfnFlowSourceMixinProps.getStreamId()- Parameters:
streamId- The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.- Returns:
this
-
vpcInterfaceName
Sets the value ofCfnFlowSourceMixinProps.getVpcInterfaceName()- Parameters:
vpcInterfaceName- The name of the VPC interface to use for this source.- Returns:
this
-
whitelistCidr
Sets the value ofCfnFlowSourceMixinProps.getWhitelistCidr()- Parameters:
whitelistCidr- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowSourceMixinProps>- Returns:
- a new instance of
CfnFlowSourceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-