Class RtmpOutputDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.RtmpOutputDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RtmpOutputDefinition>
- Enclosing interface:
RtmpOutputDefinition
@Stability(Experimental)
public static final class RtmpOutputDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<RtmpOutputDefinition>
A builder for
RtmpOutputDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateMode(RtmpCertificateMode certificateMode) Sets the value ofRtmpOutputDefinition.getCertificateMode()connectionRetryInterval(Duration connectionRetryInterval) Sets the value ofRtmpOutputDefinition.getConnectionRetryInterval()destinations(List<? extends RtmpDestination> destinations) Sets the value ofRtmpOutputDefinition.getDestinations()encodes(List<? extends EncodeConfiguration> encodes) Sets the value ofOutputDefinition.getEncodes()numRetries(Number numRetries) Sets the value ofRtmpOutputDefinition.getNumRetries()outputName(String outputName) Sets the value ofOutputDefinition.getOutputName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinations
@Stability(Experimental) public RtmpOutputDefinition.Builder destinations(List<? extends RtmpDestination> destinations) Sets the value ofRtmpOutputDefinition.getDestinations()- Parameters:
destinations- The RTMP destination(s) for this output — one per channel pipeline. This parameter is required. MediaLive publishes each RTMP output to one destination per pipeline (the console calls these "Destination A" and "Destination B"). Provide a single destination for aSINGLE_PIPELINEchannel, or two (A then B) for aSTANDARDchannel.- Returns:
this
-
certificateMode
@Stability(Experimental) public RtmpOutputDefinition.Builder certificateMode(RtmpCertificateMode certificateMode) Sets the value ofRtmpOutputDefinition.getCertificateMode()- Parameters:
certificateMode- The TLS certificate verification mode.- Returns:
this
-
connectionRetryInterval
@Stability(Experimental) public RtmpOutputDefinition.Builder connectionRetryInterval(Duration connectionRetryInterval) Sets the value ofRtmpOutputDefinition.getConnectionRetryInterval()- Parameters:
connectionRetryInterval- The interval between connection retry attempts.- Returns:
this
-
numRetries
Sets the value ofRtmpOutputDefinition.getNumRetries()- Parameters:
numRetries- The number of retry attempts.- Returns:
this
-
encodes
@Stability(Experimental) public RtmpOutputDefinition.Builder encodes(List<? extends EncodeConfiguration> encodes) Sets the value ofOutputDefinition.getEncodes()- Parameters:
encodes- The encode configurations to wire to this output. This parameter is required.- Returns:
this
-
outputName
Sets the value ofOutputDefinition.getOutputName()- Parameters:
outputName- The name of this output. This parameter is required. Must be unique across all outputs in the channel.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RtmpOutputDefinition>- Returns:
- a new instance of
RtmpOutputDefinition - Throws:
NullPointerException- if any required attribute was not provided
-