Class SourceSrtCaller.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.SourceSrtCaller.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceSrtCaller>
- Enclosing interface:
SourceSrtCaller
@Stability(Experimental)
public static final class SourceSrtCaller.Builder
extends Object
implements software.amazon.jsii.Builder<SourceSrtCaller>
A builder for
SourceSrtCaller-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.decryption(SrtPasswordEncryption decryption) Sets the value ofSourceSrtCaller.getDecryption()description(String description) Sets the value ofSourceBase.getDescription()flowSourceName(String flowSourceName) Sets the value ofSourceBase.getFlowSourceName()maxBitrate(Bitrate maxBitrate) Sets the value ofSourceSrtCaller.getMaxBitrate()maxLatency(Duration maxLatency) Sets the value ofSourceSrtCaller.getMaxLatency()minLatency(Duration minLatency) Sets the value ofSourceSrtCaller.getMinLatency()sourceListenerAddress(String sourceListenerAddress) Sets the value ofSourceSrtCaller.getSourceListenerAddress()sourceListenerPort(Number sourceListenerPort) Sets the value ofSourceSrtCaller.getSourceListenerPort()Sets the value ofSourceSrtCaller.getStreamId()vpcInterface(VpcInterfaceConfig vpcInterface) Sets the value ofSourceSrtCaller.getVpcInterface()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceListenerAddress
@Stability(Experimental) public SourceSrtCaller.Builder sourceListenerAddress(String sourceListenerAddress) Sets the value ofSourceSrtCaller.getSourceListenerAddress()- Parameters:
sourceListenerAddress- Source IP or domain name for SRT-caller protocol. This parameter is required.- Returns:
this
-
sourceListenerPort
@Stability(Experimental) public SourceSrtCaller.Builder sourceListenerPort(Number sourceListenerPort) Sets the value ofSourceSrtCaller.getSourceListenerPort()- Parameters:
sourceListenerPort- Source port for SRT-caller protocol. This parameter is required. Valid range: 1024–65535. Ports 2077 and 2088 are reserved by MediaConnect for Zixi traffic and cannot be used for SRT Caller.- Returns:
this
-
decryption
@Stability(Experimental) public SourceSrtCaller.Builder decryption(SrtPasswordEncryption decryption) Sets the value ofSourceSrtCaller.getDecryption()- Parameters:
decryption- SRT Decryption options.- Returns:
this
-
maxBitrate
Sets the value ofSourceSrtCaller.getMaxBitrate()- Parameters:
maxBitrate- The maximum bitrate for streams.- Returns:
this
-
maxLatency
Sets the value ofSourceSrtCaller.getMaxLatency()- Parameters:
maxLatency- The maximum latency in milliseconds for SRT-based streams.- Returns:
this
-
minLatency
Sets the value ofSourceSrtCaller.getMinLatency()- Parameters:
minLatency- The minimum latency in milliseconds for SRT-based streams. The value you set on your MediaConnect source represents the minimal potential latency of that connection. The latency of the stream is set to the higher of the sender's minimum latency and the receiver's minimum latency.- Returns:
this
-
streamId
Sets the value ofSourceSrtCaller.getStreamId()- Parameters:
streamId- The stream ID that you want to use for the transport.- Returns:
this
-
vpcInterface
@Stability(Experimental) public SourceSrtCaller.Builder vpcInterface(VpcInterfaceConfig vpcInterface) Sets the value ofSourceSrtCaller.getVpcInterface()- Parameters:
vpcInterface- Optional VPC interface for the outbound SRT Caller connection. SRT Caller initiates the connection to the configuredsourceListenerAddressandsourceListenerPort, so no CIDR allow list is needed.- Returns:
this
-
description
Sets the value ofSourceBase.getDescription()- Parameters:
description- A description of the source. This description appears only on the MediaConnect console and will not be seen by the end user.- Returns:
this
-
flowSourceName
Sets the value ofSourceBase.getFlowSourceName()- Parameters:
flowSourceName- The name of the source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SourceSrtCaller>- Returns:
- a new instance of
SourceSrtCaller - Throws:
NullPointerException- if any required attribute was not provided
-