Class CfnFlowMediaStreamMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.mediaconnect.CfnFlowMediaStreamMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowMediaStreamMixinProps>
- Enclosing interface:
CfnFlowMediaStreamMixinProps
@Stability(Stable)
public static final class CfnFlowMediaStreamMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowMediaStreamMixinProps>
A builder for
CfnFlowMediaStreamMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFlowMediaStreamMixinProps.getAttributes()attributes(IResolvable attributes) Sets the value ofCfnFlowMediaStreamMixinProps.getAttributes()build()Builds the configured instance.Sets the value ofCfnFlowMediaStreamMixinProps.getClockRate()description(String description) Sets the value ofCfnFlowMediaStreamMixinProps.getDescription()Sets the value ofCfnFlowMediaStreamMixinProps.getFlowArn()mediaStreamId(Number mediaStreamId) Sets the value ofCfnFlowMediaStreamMixinProps.getMediaStreamId()mediaStreamName(String mediaStreamName) Sets the value ofCfnFlowMediaStreamMixinProps.getMediaStreamName()mediaStreamType(String mediaStreamType) Sets the value ofCfnFlowMediaStreamMixinProps.getMediaStreamType()Sets the value ofCfnFlowMediaStreamMixinProps.getTags()videoFormat(String videoFormat) Sets the value ofCfnFlowMediaStreamMixinProps.getVideoFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
Sets the value ofCfnFlowMediaStreamMixinProps.getAttributes()- Parameters:
attributes- Attributes that are related to the media stream.- Returns:
this
-
attributes
@Stability(Stable) public CfnFlowMediaStreamMixinProps.Builder attributes(CfnFlowMediaStreamPropsMixin.MediaStreamAttributesProperty attributes) Sets the value ofCfnFlowMediaStreamMixinProps.getAttributes()- Parameters:
attributes- Attributes that are related to the media stream.- Returns:
this
-
clockRate
Sets the value ofCfnFlowMediaStreamMixinProps.getClockRate()- Parameters:
clockRate- The sample rate (in Hz) for the stream. If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000.- Returns:
this
-
description
Sets the value ofCfnFlowMediaStreamMixinProps.getDescription()- Parameters:
description- A description that can help you quickly identify what your media stream is used for.- Returns:
this
-
flowArn
Sets the value ofCfnFlowMediaStreamMixinProps.getFlowArn()- Parameters:
flowArn- The Amazon Resource Name (ARN) of the flow that the media stream belongs to.- Returns:
this
-
mediaStreamId
Sets the value ofCfnFlowMediaStreamMixinProps.getMediaStreamId()- Parameters:
mediaStreamId- A unique identifier for the media stream.- Returns:
this
-
mediaStreamName
@Stability(Stable) public CfnFlowMediaStreamMixinProps.Builder mediaStreamName(String mediaStreamName) Sets the value ofCfnFlowMediaStreamMixinProps.getMediaStreamName()- Parameters:
mediaStreamName- A name that helps you distinguish one media stream from another.- Returns:
this
-
mediaStreamType
@Stability(Stable) public CfnFlowMediaStreamMixinProps.Builder mediaStreamType(String mediaStreamType) Sets the value ofCfnFlowMediaStreamMixinProps.getMediaStreamType()- Parameters:
mediaStreamType- The type of media stream.- Returns:
this
-
tags
Sets the value ofCfnFlowMediaStreamMixinProps.getTags()- Parameters:
tags- The key-value pairs that can be used to tag and organize the media stream.- Returns:
this
-
videoFormat
Sets the value ofCfnFlowMediaStreamMixinProps.getVideoFormat()- Parameters:
videoFormat- The resolution of the video. Required for a video media stream and rejected for other media stream types.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowMediaStreamMixinProps>- Returns:
- a new instance of
CfnFlowMediaStreamMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-