Class CfnFlow.SourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.SourceProperty>
- Enclosing interface:
CfnFlow.SourceProperty
@Stability(Stable)
public static final class CfnFlow.SourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.SourceProperty>
A builder for
CfnFlow.SourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.decryption
(IResolvable decryption) Sets the value ofCfnFlow.SourceProperty.getDecryption()
decryption
(CfnFlow.EncryptionProperty decryption) Sets the value ofCfnFlow.SourceProperty.getDecryption()
description
(String description) Sets the value ofCfnFlow.SourceProperty.getDescription()
entitlementArn
(String entitlementArn) Sets the value ofCfnFlow.SourceProperty.getEntitlementArn()
Sets the value ofCfnFlow.SourceProperty.getIngestIp()
ingestPort
(Number ingestPort) Sets the value ofCfnFlow.SourceProperty.getIngestPort()
maxBitrate
(Number maxBitrate) Sets the value ofCfnFlow.SourceProperty.getMaxBitrate()
maxLatency
(Number maxLatency) Sets the value ofCfnFlow.SourceProperty.getMaxLatency()
minLatency
(Number minLatency) Sets the value ofCfnFlow.SourceProperty.getMinLatency()
Sets the value ofCfnFlow.SourceProperty.getName()
Sets the value ofCfnFlow.SourceProperty.getProtocol()
senderControlPort
(Number senderControlPort) Sets the value ofCfnFlow.SourceProperty.getSenderControlPort()
senderIpAddress
(String senderIpAddress) Sets the value ofCfnFlow.SourceProperty.getSenderIpAddress()
Sets the value ofCfnFlow.SourceProperty.getSourceArn()
sourceIngestPort
(String sourceIngestPort) Sets the value ofCfnFlow.SourceProperty.getSourceIngestPort()
sourceListenerAddress
(String sourceListenerAddress) Sets the value ofCfnFlow.SourceProperty.getSourceListenerAddress()
sourceListenerPort
(Number sourceListenerPort) Sets the value ofCfnFlow.SourceProperty.getSourceListenerPort()
Sets the value ofCfnFlow.SourceProperty.getStreamId()
vpcInterfaceName
(String vpcInterfaceName) Sets the value ofCfnFlow.SourceProperty.getVpcInterfaceName()
whitelistCidr
(String whitelistCidr) Sets the value ofCfnFlow.SourceProperty.getWhitelistCidr()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
decryption
Sets the value ofCfnFlow.SourceProperty.getDecryption()
- Parameters:
decryption
- The type of encryption that is used on the content ingested from the source.- Returns:
this
-
decryption
@Stability(Stable) public CfnFlow.SourceProperty.Builder decryption(CfnFlow.EncryptionProperty decryption) Sets the value ofCfnFlow.SourceProperty.getDecryption()
- Parameters:
decryption
- The type of encryption that is used on the content ingested from the source.- Returns:
this
-
description
Sets the value ofCfnFlow.SourceProperty.getDescription()
- Parameters:
description
- A description of the source. This description is not visible outside of the current AWS account.- Returns:
this
-
entitlementArn
Sets the value ofCfnFlow.SourceProperty.getEntitlementArn()
- Parameters:
entitlementArn
- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator’s flow.- Returns:
this
-
ingestIp
Sets the value ofCfnFlow.SourceProperty.getIngestIp()
- Parameters:
ingestIp
- The IP address that the flow listens on for incoming content.- Returns:
this
-
ingestPort
Sets the value ofCfnFlow.SourceProperty.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 ofCfnFlow.SourceProperty.getMaxBitrate()
- Parameters:
maxBitrate
- The maximum bitrate for RIST, RTP, and RTP-FEC streams.- Returns:
this
-
maxLatency
Sets the value ofCfnFlow.SourceProperty.getMaxLatency()
- Parameters:
maxLatency
- The maximum latency in milliseconds for a RIST or Zixi-based source.- Returns:
this
-
minLatency
Sets the value ofCfnFlow.SourceProperty.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 ofCfnFlow.SourceProperty.getName()
- Parameters:
name
- The name of the source.- Returns:
this
-
protocol
Sets the value ofCfnFlow.SourceProperty.getProtocol()
- Parameters:
protocol
- The protocol that is used by the source. AWS CloudFormation does not currently support CDI or ST 2110 JPEG XS source protocols.- Returns:
this
-
senderControlPort
@Stability(Stable) public CfnFlow.SourceProperty.Builder senderControlPort(Number senderControlPort) Sets the value ofCfnFlow.SourceProperty.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 ofCfnFlow.SourceProperty.getSenderIpAddress()
- Parameters:
senderIpAddress
- The IP address that the flow communicates with to initiate connection with the sender.- Returns:
this
-
sourceArn
Sets the value ofCfnFlow.SourceProperty.getSourceArn()
- Parameters:
sourceArn
- The ARN of the source.- Returns:
this
-
sourceIngestPort
Sets the value ofCfnFlow.SourceProperty.getSourceIngestPort()
- Parameters:
sourceIngestPort
- The port that the flow will be listening on for incoming content.- Returns:
this
-
sourceListenerAddress
@Stability(Stable) public CfnFlow.SourceProperty.Builder sourceListenerAddress(String sourceListenerAddress) Sets the value ofCfnFlow.SourceProperty.getSourceListenerAddress()
- Parameters:
sourceListenerAddress
- Source IP or domain name for SRT-caller protocol.- Returns:
this
-
sourceListenerPort
@Stability(Stable) public CfnFlow.SourceProperty.Builder sourceListenerPort(Number sourceListenerPort) Sets the value ofCfnFlow.SourceProperty.getSourceListenerPort()
- Parameters:
sourceListenerPort
- Source port for SRT-caller protocol.- Returns:
this
-
streamId
Sets the value ofCfnFlow.SourceProperty.getStreamId()
- Parameters:
streamId
- The stream ID that you want to use for the transport. This parameter applies only to Zixi-based streams.- Returns:
this
-
vpcInterfaceName
Sets the value ofCfnFlow.SourceProperty.getVpcInterfaceName()
- Parameters:
vpcInterfaceName
- The name of the VPC interface that the source content comes from.- Returns:
this
-
whitelistCidr
Sets the value ofCfnFlow.SourceProperty.getWhitelistCidr()
- Parameters:
whitelistCidr
- The range of IP addresses that are allowed to contribute content to your source. Format the IP addresses as a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlow.SourceProperty>
- Returns:
- a new instance of
CfnFlow.SourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-