Class CfnOriginEndpoint.StreamSelectionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.StreamSelectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.StreamSelectionProperty>
- Enclosing interface:
CfnOriginEndpoint.StreamSelectionProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.StreamSelectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.StreamSelectionProperty>
A builder for
CfnOriginEndpoint.StreamSelectionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxVideoBitsPerSecond
(Number maxVideoBitsPerSecond) Sets the value ofCfnOriginEndpoint.StreamSelectionProperty.getMaxVideoBitsPerSecond()
minVideoBitsPerSecond
(Number minVideoBitsPerSecond) Sets the value ofCfnOriginEndpoint.StreamSelectionProperty.getMinVideoBitsPerSecond()
streamOrder
(String streamOrder) Sets the value ofCfnOriginEndpoint.StreamSelectionProperty.getStreamOrder()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxVideoBitsPerSecond
@Stability(Stable) public CfnOriginEndpoint.StreamSelectionProperty.Builder maxVideoBitsPerSecond(Number maxVideoBitsPerSecond) Sets the value ofCfnOriginEndpoint.StreamSelectionProperty.getMaxVideoBitsPerSecond()
- Parameters:
maxVideoBitsPerSecond
- The upper limit of the bitrates that this endpoint serves. If the video track exceeds this threshold, then AWS Elemental MediaPackage excludes it from output. If you don't specify a value, it defaults to 2147483647 bits per second.- Returns:
this
-
minVideoBitsPerSecond
@Stability(Stable) public CfnOriginEndpoint.StreamSelectionProperty.Builder minVideoBitsPerSecond(Number minVideoBitsPerSecond) Sets the value ofCfnOriginEndpoint.StreamSelectionProperty.getMinVideoBitsPerSecond()
- Parameters:
minVideoBitsPerSecond
- The lower limit of the bitrates that this endpoint serves. If the video track is below this threshold, then AWS Elemental MediaPackage excludes it from output. If you don't specify a value, it defaults to 0 bits per second.- Returns:
this
-
streamOrder
@Stability(Stable) public CfnOriginEndpoint.StreamSelectionProperty.Builder streamOrder(String streamOrder) Sets the value ofCfnOriginEndpoint.StreamSelectionProperty.getStreamOrder()
- Parameters:
streamOrder
- Order in which the different video bitrates are presented to the player. Valid values:ORIGINAL
,VIDEO_BITRATE_ASCENDING
,VIDEO_BITRATE_DESCENDING
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOriginEndpoint.StreamSelectionProperty>
- Returns:
- a new instance of
CfnOriginEndpoint.StreamSelectionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-