Class MediaStreamVideo.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.MediaStreamVideo.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MediaStreamVideo>
- Enclosing interface:
MediaStreamVideo
@Stability(Experimental)
public static final class MediaStreamVideo.Builder
extends Object
implements software.amazon.jsii.Builder<MediaStreamVideo>
A builder for
MediaStreamVideo-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofMediaStreamVideo.getClockRate()description(String description) Sets the value ofMediaStreamBase.getDescription()Sets the value ofMediaStreamVideo.getFmt()Sets the value ofMediaStreamVideo.getFmtp()mediaStreamId(Number mediaStreamId) Sets the value ofMediaStreamBase.getMediaStreamId()mediaStreamName(String mediaStreamName) Sets the value ofMediaStreamBase.getMediaStreamName()videoFormat(MediaVideoFormat videoFormat) Sets the value ofMediaStreamVideo.getVideoFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fmtp
Sets the value ofMediaStreamVideo.getFmtp()- Parameters:
fmtp- Attributes that are related to the media stream. This parameter is required.- Returns:
this
-
videoFormat
Sets the value ofMediaStreamVideo.getVideoFormat()- Parameters:
videoFormat- The resolution of the video. This parameter is required.- Returns:
this
-
clockRate
Sets the value ofMediaStreamVideo.getClockRate()- Parameters:
clockRate- The sample rate for the stream. This value is measured in Hz.- Returns:
this
-
fmt
Sets the value ofMediaStreamVideo.getFmt()- Parameters:
fmt- The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.- Returns:
this
-
mediaStreamId
Sets the value ofMediaStreamBase.getMediaStreamId()- Parameters:
mediaStreamId- A unique identifier for the media stream. This parameter is required.- Returns:
this
-
mediaStreamName
Sets the value ofMediaStreamBase.getMediaStreamName()- Parameters:
mediaStreamName- A name that helps you distinguish one media stream from another. This parameter is required.- Returns:
this
-
description
Sets the value ofMediaStreamBase.getDescription()- Parameters:
description- A description that can help you quickly identify what your media stream is used for.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MediaStreamVideo>- Returns:
- a new instance of
MediaStreamVideo - Throws:
NullPointerException- if any required attribute was not provided
-