Class CfnFlowMediaStreamProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.CfnFlowMediaStreamProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowMediaStreamProps>
- Enclosing interface:
CfnFlowMediaStreamProps
@Stability(Stable)
public static final class CfnFlowMediaStreamProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowMediaStreamProps>
A builder for
CfnFlowMediaStreamProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(IResolvable attributes) Sets the value ofCfnFlowMediaStreamProps.getAttributes()Sets the value ofCfnFlowMediaStreamProps.getAttributes()build()Builds the configured instance.Sets the value ofCfnFlowMediaStreamProps.getClockRate()description(String description) Sets the value ofCfnFlowMediaStreamProps.getDescription()Sets the value ofCfnFlowMediaStreamProps.getFlowArn()mediaStreamId(Number mediaStreamId) Sets the value ofCfnFlowMediaStreamProps.getMediaStreamId()mediaStreamName(String mediaStreamName) Sets the value ofCfnFlowMediaStreamProps.getMediaStreamName()mediaStreamType(String mediaStreamType) Sets the value ofCfnFlowMediaStreamProps.getMediaStreamType()Sets the value ofCfnFlowMediaStreamProps.getTags()videoFormat(String videoFormat) Sets the value ofCfnFlowMediaStreamProps.getVideoFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
flowArn
Sets the value ofCfnFlowMediaStreamProps.getFlowArn()- Parameters:
flowArn- The Amazon Resource Name (ARN) of the flow that the media stream belongs to. This parameter is required.- Returns:
this
-
mediaStreamId
Sets the value ofCfnFlowMediaStreamProps.getMediaStreamId()- Parameters:
mediaStreamId- A unique identifier for the media stream. This parameter is required.- Returns:
this
-
mediaStreamName
Sets the value ofCfnFlowMediaStreamProps.getMediaStreamName()- Parameters:
mediaStreamName- A name that helps you distinguish one media stream from another. This parameter is required.- Returns:
this
-
mediaStreamType
Sets the value ofCfnFlowMediaStreamProps.getMediaStreamType()- Parameters:
mediaStreamType- The type of media stream. This parameter is required.- Returns:
this
-
attributes
Sets the value ofCfnFlowMediaStreamProps.getAttributes()- Parameters:
attributes- Attributes that are related to the media stream.- Returns:
this
-
attributes
@Stability(Stable) public CfnFlowMediaStreamProps.Builder attributes(CfnFlowMediaStream.MediaStreamAttributesProperty attributes) Sets the value ofCfnFlowMediaStreamProps.getAttributes()- Parameters:
attributes- Attributes that are related to the media stream.- Returns:
this
-
clockRate
Sets the value ofCfnFlowMediaStreamProps.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 ofCfnFlowMediaStreamProps.getDescription()- Parameters:
description- A description that can help you quickly identify what your media stream is used for.- Returns:
this
-
tags
Sets the value ofCfnFlowMediaStreamProps.getTags()- Parameters:
tags- The key-value pairs that can be used to tag and organize the media stream.- Returns:
this
-
videoFormat
Sets the value ofCfnFlowMediaStreamProps.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<CfnFlowMediaStreamProps>- Returns:
- a new instance of
CfnFlowMediaStreamProps - Throws:
NullPointerException- if any required attribute was not provided
-