Struct aws_sdk_mediaconnect::types::builders::MediaStreamBuilder
source · #[non_exhaustive]pub struct MediaStreamBuilder { /* private fields */ }Expand description
A builder for MediaStream.
Implementations§
source§impl MediaStreamBuilder
impl MediaStreamBuilder
sourcepub fn attributes(self, input: MediaStreamAttributes) -> Self
pub fn attributes(self, input: MediaStreamAttributes) -> Self
Attributes that are related to the media stream.
sourcepub fn set_attributes(self, input: Option<MediaStreamAttributes>) -> Self
pub fn set_attributes(self, input: Option<MediaStreamAttributes>) -> Self
Attributes that are related to the media stream.
sourcepub fn get_attributes(&self) -> &Option<MediaStreamAttributes>
pub fn get_attributes(&self) -> &Option<MediaStreamAttributes>
Attributes that are related to the media stream.
sourcepub fn clock_rate(self, input: i32) -> Self
pub fn clock_rate(self, input: i32) -> Self
The sample rate for the stream. This value is measured in Hz.
sourcepub fn set_clock_rate(self, input: Option<i32>) -> Self
pub fn set_clock_rate(self, input: Option<i32>) -> Self
The sample rate for the stream. This value is measured in Hz.
sourcepub fn get_clock_rate(&self) -> &Option<i32>
pub fn get_clock_rate(&self) -> &Option<i32>
The sample rate for the stream. This value is measured in Hz.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description that can help you quickly identify what your media stream is used for.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description that can help you quickly identify what your media stream is used for.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description that can help you quickly identify what your media stream is used for.
sourcepub fn fmt(self, input: i32) -> Self
pub fn fmt(self, input: i32) -> Self
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. This field is required.
sourcepub fn set_fmt(self, input: Option<i32>) -> Self
pub fn set_fmt(self, input: Option<i32>) -> Self
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.
sourcepub fn get_fmt(&self) -> &Option<i32>
pub fn get_fmt(&self) -> &Option<i32>
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.
sourcepub fn media_stream_id(self, input: i32) -> Self
pub fn media_stream_id(self, input: i32) -> Self
A unique identifier for the media stream. This field is required.
sourcepub fn set_media_stream_id(self, input: Option<i32>) -> Self
pub fn set_media_stream_id(self, input: Option<i32>) -> Self
A unique identifier for the media stream.
sourcepub fn get_media_stream_id(&self) -> &Option<i32>
pub fn get_media_stream_id(&self) -> &Option<i32>
A unique identifier for the media stream.
sourcepub fn media_stream_name(self, input: impl Into<String>) -> Self
pub fn media_stream_name(self, input: impl Into<String>) -> Self
A name that helps you distinguish one media stream from another. This field is required.
sourcepub fn set_media_stream_name(self, input: Option<String>) -> Self
pub fn set_media_stream_name(self, input: Option<String>) -> Self
A name that helps you distinguish one media stream from another.
sourcepub fn get_media_stream_name(&self) -> &Option<String>
pub fn get_media_stream_name(&self) -> &Option<String>
A name that helps you distinguish one media stream from another.
sourcepub fn media_stream_type(self, input: MediaStreamType) -> Self
pub fn media_stream_type(self, input: MediaStreamType) -> Self
The type of media stream. This field is required.
sourcepub fn set_media_stream_type(self, input: Option<MediaStreamType>) -> Self
pub fn set_media_stream_type(self, input: Option<MediaStreamType>) -> Self
The type of media stream.
sourcepub fn get_media_stream_type(&self) -> &Option<MediaStreamType>
pub fn get_media_stream_type(&self) -> &Option<MediaStreamType>
The type of media stream.
sourcepub fn video_format(self, input: impl Into<String>) -> Self
pub fn video_format(self, input: impl Into<String>) -> Self
The resolution of the video.
sourcepub fn set_video_format(self, input: Option<String>) -> Self
pub fn set_video_format(self, input: Option<String>) -> Self
The resolution of the video.
sourcepub fn get_video_format(&self) -> &Option<String>
pub fn get_video_format(&self) -> &Option<String>
The resolution of the video.
sourcepub fn build(self) -> MediaStream
pub fn build(self) -> MediaStream
Consumes the builder and constructs a MediaStream.
Trait Implementations§
source§impl Clone for MediaStreamBuilder
impl Clone for MediaStreamBuilder
source§fn clone(&self) -> MediaStreamBuilder
fn clone(&self) -> MediaStreamBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MediaStreamBuilder
impl Debug for MediaStreamBuilder
source§impl Default for MediaStreamBuilder
impl Default for MediaStreamBuilder
source§fn default() -> MediaStreamBuilder
fn default() -> MediaStreamBuilder
source§impl PartialEq for MediaStreamBuilder
impl PartialEq for MediaStreamBuilder
source§fn eq(&self, other: &MediaStreamBuilder) -> bool
fn eq(&self, other: &MediaStreamBuilder) -> bool
self and other values to be equal, and is used
by ==.