Class CfnChannel.H265SettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.H265SettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.H265SettingsProperty>
- Enclosing interface:
CfnChannel.H265SettingsProperty
@Stability(Stable)
public static final class CfnChannel.H265SettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.H265SettingsProperty>
A builder for
CfnChannel.H265SettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadaptiveQuantization
(String adaptiveQuantization) Sets the value ofCfnChannel.H265SettingsProperty.getAdaptiveQuantization()
afdSignaling
(String afdSignaling) Sets the value ofCfnChannel.H265SettingsProperty.getAfdSignaling()
alternativeTransferFunction
(String alternativeTransferFunction) Sets the value ofCfnChannel.H265SettingsProperty.getAlternativeTransferFunction()
Sets the value ofCfnChannel.H265SettingsProperty.getBitrate()
Sets the value ofCfnChannel.H265SettingsProperty.getBufSize()
build()
Builds the configured instance.colorMetadata
(String colorMetadata) Sets the value ofCfnChannel.H265SettingsProperty.getColorMetadata()
colorSpaceSettings
(IResolvable colorSpaceSettings) Sets the value ofCfnChannel.H265SettingsProperty.getColorSpaceSettings()
colorSpaceSettings
(CfnChannel.H265ColorSpaceSettingsProperty colorSpaceSettings) Sets the value ofCfnChannel.H265SettingsProperty.getColorSpaceSettings()
filterSettings
(IResolvable filterSettings) Sets the value ofCfnChannel.H265SettingsProperty.getFilterSettings()
filterSettings
(CfnChannel.H265FilterSettingsProperty filterSettings) Sets the value ofCfnChannel.H265SettingsProperty.getFilterSettings()
Sets the value ofCfnChannel.H265SettingsProperty.getFixedAfd()
Sets the value ofCfnChannel.H265SettingsProperty.getFlickerAq()
framerateDenominator
(Number framerateDenominator) Sets the value ofCfnChannel.H265SettingsProperty.getFramerateDenominator()
framerateNumerator
(Number framerateNumerator) Sets the value ofCfnChannel.H265SettingsProperty.getFramerateNumerator()
gopClosedCadence
(Number gopClosedCadence) Sets the value ofCfnChannel.H265SettingsProperty.getGopClosedCadence()
Sets the value ofCfnChannel.H265SettingsProperty.getGopSize()
gopSizeUnits
(String gopSizeUnits) Sets the value ofCfnChannel.H265SettingsProperty.getGopSizeUnits()
Sets the value ofCfnChannel.H265SettingsProperty.getLevel()
lookAheadRateControl
(String lookAheadRateControl) Sets the value ofCfnChannel.H265SettingsProperty.getLookAheadRateControl()
maxBitrate
(Number maxBitrate) Sets the value ofCfnChannel.H265SettingsProperty.getMaxBitrate()
minIInterval
(Number minIInterval) Sets the value ofCfnChannel.H265SettingsProperty.getMinIInterval()
mvOverPictureBoundaries
(String mvOverPictureBoundaries) Sets the value ofCfnChannel.H265SettingsProperty.getMvOverPictureBoundaries()
mvTemporalPredictor
(String mvTemporalPredictor) Sets the value ofCfnChannel.H265SettingsProperty.getMvTemporalPredictor()
parDenominator
(Number parDenominator) Sets the value ofCfnChannel.H265SettingsProperty.getParDenominator()
parNumerator
(Number parNumerator) Sets the value ofCfnChannel.H265SettingsProperty.getParNumerator()
Sets the value ofCfnChannel.H265SettingsProperty.getProfile()
qvbrQualityLevel
(Number qvbrQualityLevel) Sets the value ofCfnChannel.H265SettingsProperty.getQvbrQualityLevel()
rateControlMode
(String rateControlMode) Sets the value ofCfnChannel.H265SettingsProperty.getRateControlMode()
Sets the value ofCfnChannel.H265SettingsProperty.getScanType()
sceneChangeDetect
(String sceneChangeDetect) Sets the value ofCfnChannel.H265SettingsProperty.getSceneChangeDetect()
Sets the value ofCfnChannel.H265SettingsProperty.getSlices()
Sets the value ofCfnChannel.H265SettingsProperty.getTier()
tileHeight
(Number tileHeight) Sets the value ofCfnChannel.H265SettingsProperty.getTileHeight()
tilePadding
(String tilePadding) Sets the value ofCfnChannel.H265SettingsProperty.getTilePadding()
Sets the value ofCfnChannel.H265SettingsProperty.getTileWidth()
timecodeBurninSettings
(IResolvable timecodeBurninSettings) Sets the value ofCfnChannel.H265SettingsProperty.getTimecodeBurninSettings()
timecodeBurninSettings
(CfnChannel.TimecodeBurninSettingsProperty timecodeBurninSettings) Sets the value ofCfnChannel.H265SettingsProperty.getTimecodeBurninSettings()
timecodeInsertion
(String timecodeInsertion) Sets the value ofCfnChannel.H265SettingsProperty.getTimecodeInsertion()
treeblockSize
(String treeblockSize) Sets the value ofCfnChannel.H265SettingsProperty.getTreeblockSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adaptiveQuantization
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder adaptiveQuantization(String adaptiveQuantization) Sets the value ofCfnChannel.H265SettingsProperty.getAdaptiveQuantization()
- Parameters:
adaptiveQuantization
- Adaptive quantization. Allows intra-frame quantizers to vary to improve visual quality.- Returns:
this
-
afdSignaling
Sets the value ofCfnChannel.H265SettingsProperty.getAfdSignaling()
- Parameters:
afdSignaling
- Indicates that AFD values will be written into the output stream. If afdSignaling is "auto", the system will try to preserve the input AFD value (in cases where multiple AFD values are valid). If set to "fixed", the AFD value will be the value configured in the fixedAfd parameter.- Returns:
this
-
alternativeTransferFunction
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder alternativeTransferFunction(String alternativeTransferFunction) Sets the value ofCfnChannel.H265SettingsProperty.getAlternativeTransferFunction()
- Parameters:
alternativeTransferFunction
- Whether or not EML should insert an Alternative Transfer Function SEI message to support backwards compatibility with non-HDR decoders and displays.- Returns:
this
-
bitrate
Sets the value ofCfnChannel.H265SettingsProperty.getBitrate()
- Parameters:
bitrate
- Average bitrate in bits/second. Required when the rate control mode is VBR or CBR. Not used for QVBR. In an MS Smooth output group, each output must have a unique value when its bitrate is rounded down to the nearest multiple of 1000.- Returns:
this
-
bufSize
Sets the value ofCfnChannel.H265SettingsProperty.getBufSize()
- Parameters:
bufSize
- Size of buffer (HRD buffer model) in bits.- Returns:
this
-
colorMetadata
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder colorMetadata(String colorMetadata) Sets the value ofCfnChannel.H265SettingsProperty.getColorMetadata()
- Parameters:
colorMetadata
- Includes colorspace metadata in the output.- Returns:
this
-
colorSpaceSettings
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder colorSpaceSettings(IResolvable colorSpaceSettings) Sets the value ofCfnChannel.H265SettingsProperty.getColorSpaceSettings()
- Parameters:
colorSpaceSettings
- Color Space settings.- Returns:
this
-
colorSpaceSettings
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder colorSpaceSettings(CfnChannel.H265ColorSpaceSettingsProperty colorSpaceSettings) Sets the value ofCfnChannel.H265SettingsProperty.getColorSpaceSettings()
- Parameters:
colorSpaceSettings
- Color Space settings.- Returns:
this
-
filterSettings
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder filterSettings(IResolvable filterSettings) Sets the value ofCfnChannel.H265SettingsProperty.getFilterSettings()
- Parameters:
filterSettings
- Optional filters that you can apply to an encode.- Returns:
this
-
filterSettings
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder filterSettings(CfnChannel.H265FilterSettingsProperty filterSettings) Sets the value ofCfnChannel.H265SettingsProperty.getFilterSettings()
- Parameters:
filterSettings
- Optional filters that you can apply to an encode.- Returns:
this
-
fixedAfd
Sets the value ofCfnChannel.H265SettingsProperty.getFixedAfd()
- Parameters:
fixedAfd
- Four bit AFD value to write on all frames of video in the output stream. Only valid when afdSignaling is set to 'Fixed'.- Returns:
this
-
flickerAq
Sets the value ofCfnChannel.H265SettingsProperty.getFlickerAq()
- Parameters:
flickerAq
- If set to enabled, adjust quantization within each frame to reduce flicker or 'pop' on I-frames.- Returns:
this
-
framerateDenominator
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder framerateDenominator(Number framerateDenominator) Sets the value ofCfnChannel.H265SettingsProperty.getFramerateDenominator()
- Parameters:
framerateDenominator
- Framerate denominator.- Returns:
this
-
framerateNumerator
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder framerateNumerator(Number framerateNumerator) Sets the value ofCfnChannel.H265SettingsProperty.getFramerateNumerator()
- Parameters:
framerateNumerator
- Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps.- Returns:
this
-
gopClosedCadence
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder gopClosedCadence(Number gopClosedCadence) Sets the value ofCfnChannel.H265SettingsProperty.getGopClosedCadence()
- Parameters:
gopClosedCadence
- Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.- Returns:
this
-
gopSize
Sets the value ofCfnChannel.H265SettingsProperty.getGopSize()
- Parameters:
gopSize
- GOP size (keyframe interval) in units of either frames or seconds per gopSizeUnits. If gopSizeUnits is frames, gopSize must be an integer and must be greater than or equal to 1. If gopSizeUnits is seconds, gopSize must be greater than 0, but need not be an integer.- Returns:
this
-
gopSizeUnits
Sets the value ofCfnChannel.H265SettingsProperty.getGopSizeUnits()
- Parameters:
gopSizeUnits
- Indicates if the gopSize is specified in frames or seconds. If seconds the system will convert the gopSize into a frame count at run time.- Returns:
this
-
level
Sets the value ofCfnChannel.H265SettingsProperty.getLevel()
- Parameters:
level
- H.265 Level.- Returns:
this
-
lookAheadRateControl
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder lookAheadRateControl(String lookAheadRateControl) Sets the value ofCfnChannel.H265SettingsProperty.getLookAheadRateControl()
- Parameters:
lookAheadRateControl
- Amount of lookahead. A value of low can decrease latency and memory usage, while high can produce better quality for certain content.- Returns:
this
-
maxBitrate
Sets the value ofCfnChannel.H265SettingsProperty.getMaxBitrate()
- Parameters:
maxBitrate
- For QVBR: See the tooltip for Quality level.- Returns:
this
-
minIInterval
Sets the value ofCfnChannel.H265SettingsProperty.getMinIInterval()
- Parameters:
minIInterval
- Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5 if multiplex rate control is used. Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1- Returns:
this
-
mvOverPictureBoundaries
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder mvOverPictureBoundaries(String mvOverPictureBoundaries) Sets the value ofCfnChannel.H265SettingsProperty.getMvOverPictureBoundaries()
- Parameters:
mvOverPictureBoundaries
- the value to be set.- Returns:
this
-
mvTemporalPredictor
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder mvTemporalPredictor(String mvTemporalPredictor) Sets the value ofCfnChannel.H265SettingsProperty.getMvTemporalPredictor()
- Parameters:
mvTemporalPredictor
- the value to be set.- Returns:
this
-
parDenominator
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder parDenominator(Number parDenominator) Sets the value ofCfnChannel.H265SettingsProperty.getParDenominator()
- Parameters:
parDenominator
- Pixel Aspect Ratio denominator.- Returns:
this
-
parNumerator
Sets the value ofCfnChannel.H265SettingsProperty.getParNumerator()
- Parameters:
parNumerator
- Pixel Aspect Ratio numerator.- Returns:
this
-
profile
Sets the value ofCfnChannel.H265SettingsProperty.getProfile()
- Parameters:
profile
- H.265 Profile.- Returns:
this
-
qvbrQualityLevel
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder qvbrQualityLevel(Number qvbrQualityLevel) Sets the value ofCfnChannel.H265SettingsProperty.getQvbrQualityLevel()
- Parameters:
qvbrQualityLevel
- Controls the target quality for the video encode. Applies only when the rate control mode is QVBR. Set values for the QVBR quality level field and Max bitrate field that suit your most important viewing devices. Recommended values are:- Primary screen: Quality level: 8 to 10. Max bitrate: 4M
- PC or tablet: Quality level: 7. Max bitrate: 1.5M to 3M
- Smartphone: Quality level: 6. Max bitrate: 1M to 1.5M
- Returns:
this
-
rateControlMode
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder rateControlMode(String rateControlMode) Sets the value ofCfnChannel.H265SettingsProperty.getRateControlMode()
- Parameters:
rateControlMode
- Rate control mode. QVBR: Quality will match the specified quality level except when it is constrained by the maximum bitrate. Recommended if you or your viewers pay for bandwidth. CBR: Quality varies, depending on the video complexity. Recommended only if you distribute your assets to devices that cannot handle variable bitrates. Multiplex: This rate control mode is only supported (and is required) when the video is being delivered to a MediaLive Multiplex in which case the rate control configuration is controlled by the properties within the Multiplex Program.- Returns:
this
-
scanType
Sets the value ofCfnChannel.H265SettingsProperty.getScanType()
- Parameters:
scanType
- Sets the scan type of the output to progressive or top-field-first interlaced.- Returns:
this
-
sceneChangeDetect
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder sceneChangeDetect(String sceneChangeDetect) Sets the value ofCfnChannel.H265SettingsProperty.getSceneChangeDetect()
- Parameters:
sceneChangeDetect
- Scene change detection.- Returns:
this
-
slices
Sets the value ofCfnChannel.H265SettingsProperty.getSlices()
- Parameters:
slices
- Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures. This field is optional; when no value is specified the encoder will choose the number of slices based on encode resolution.- Returns:
this
-
tier
Sets the value ofCfnChannel.H265SettingsProperty.getTier()
- Parameters:
tier
- H.265 Tier.- Returns:
this
-
tileHeight
Sets the value ofCfnChannel.H265SettingsProperty.getTileHeight()
- Parameters:
tileHeight
- the value to be set.- Returns:
this
-
tilePadding
Sets the value ofCfnChannel.H265SettingsProperty.getTilePadding()
- Parameters:
tilePadding
- the value to be set.- Returns:
this
-
tileWidth
Sets the value ofCfnChannel.H265SettingsProperty.getTileWidth()
- Parameters:
tileWidth
- the value to be set.- Returns:
this
-
timecodeBurninSettings
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder timecodeBurninSettings(IResolvable timecodeBurninSettings) Sets the value ofCfnChannel.H265SettingsProperty.getTimecodeBurninSettings()
- Parameters:
timecodeBurninSettings
- the value to be set.- Returns:
this
-
timecodeBurninSettings
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder timecodeBurninSettings(CfnChannel.TimecodeBurninSettingsProperty timecodeBurninSettings) Sets the value ofCfnChannel.H265SettingsProperty.getTimecodeBurninSettings()
- Parameters:
timecodeBurninSettings
- the value to be set.- Returns:
this
-
timecodeInsertion
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder timecodeInsertion(String timecodeInsertion) Sets the value ofCfnChannel.H265SettingsProperty.getTimecodeInsertion()
- Parameters:
timecodeInsertion
- Determines how timecodes should be inserted into the video elementary stream.- 'disabled': Do not include timecodes
- 'picTimingSei': Pass through picture timing SEI messages from the source specified in Timecode Config
- Returns:
this
-
treeblockSize
@Stability(Stable) public CfnChannel.H265SettingsProperty.Builder treeblockSize(String treeblockSize) Sets the value ofCfnChannel.H265SettingsProperty.getTreeblockSize()
- Parameters:
treeblockSize
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.H265SettingsProperty>
- Returns:
- a new instance of
CfnChannel.H265SettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-