aws-sdk-medialive 1.76.0

AWS SDK for AWS Elemental MediaLive
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Placeholder documentation for ListReservationsRequest
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListReservationsInput {
    /// Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'
    pub channel_class: ::std::option::Option<::std::string::String>,
    /// Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', 'LINK', or 'AV1'
    pub codec: ::std::option::Option<::std::string::String>,
    /// Placeholder documentation for MaxResults
    pub max_results: ::std::option::Option<i32>,
    /// Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'
    pub maximum_bitrate: ::std::option::Option<::std::string::String>,
    /// Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'
    pub maximum_framerate: ::std::option::Option<::std::string::String>,
    /// Placeholder documentation for __string
    pub next_token: ::std::option::Option<::std::string::String>,
    /// Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'
    pub resolution: ::std::option::Option<::std::string::String>,
    /// Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'
    pub resource_type: ::std::option::Option<::std::string::String>,
    /// Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'
    pub special_feature: ::std::option::Option<::std::string::String>,
    /// Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'
    pub video_quality: ::std::option::Option<::std::string::String>,
}
impl ListReservationsInput {
    /// Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'
    pub fn channel_class(&self) -> ::std::option::Option<&str> {
        self.channel_class.as_deref()
    }
    /// Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', 'LINK', or 'AV1'
    pub fn codec(&self) -> ::std::option::Option<&str> {
        self.codec.as_deref()
    }
    /// Placeholder documentation for MaxResults
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'
    pub fn maximum_bitrate(&self) -> ::std::option::Option<&str> {
        self.maximum_bitrate.as_deref()
    }
    /// Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'
    pub fn maximum_framerate(&self) -> ::std::option::Option<&str> {
        self.maximum_framerate.as_deref()
    }
    /// Placeholder documentation for __string
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'
    pub fn resolution(&self) -> ::std::option::Option<&str> {
        self.resolution.as_deref()
    }
    /// Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'
    pub fn resource_type(&self) -> ::std::option::Option<&str> {
        self.resource_type.as_deref()
    }
    /// Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'
    pub fn special_feature(&self) -> ::std::option::Option<&str> {
        self.special_feature.as_deref()
    }
    /// Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'
    pub fn video_quality(&self) -> ::std::option::Option<&str> {
        self.video_quality.as_deref()
    }
}
impl ListReservationsInput {
    /// Creates a new builder-style object to manufacture [`ListReservationsInput`](crate::operation::list_reservations::ListReservationsInput).
    pub fn builder() -> crate::operation::list_reservations::builders::ListReservationsInputBuilder {
        crate::operation::list_reservations::builders::ListReservationsInputBuilder::default()
    }
}

/// A builder for [`ListReservationsInput`](crate::operation::list_reservations::ListReservationsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListReservationsInputBuilder {
    pub(crate) channel_class: ::std::option::Option<::std::string::String>,
    pub(crate) codec: ::std::option::Option<::std::string::String>,
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) maximum_bitrate: ::std::option::Option<::std::string::String>,
    pub(crate) maximum_framerate: ::std::option::Option<::std::string::String>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) resolution: ::std::option::Option<::std::string::String>,
    pub(crate) resource_type: ::std::option::Option<::std::string::String>,
    pub(crate) special_feature: ::std::option::Option<::std::string::String>,
    pub(crate) video_quality: ::std::option::Option<::std::string::String>,
}
impl ListReservationsInputBuilder {
    /// Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'
    pub fn channel_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.channel_class = ::std::option::Option::Some(input.into());
        self
    }
    /// Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'
    pub fn set_channel_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.channel_class = input;
        self
    }
    /// Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'
    pub fn get_channel_class(&self) -> &::std::option::Option<::std::string::String> {
        &self.channel_class
    }
    /// Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', 'LINK', or 'AV1'
    pub fn codec(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.codec = ::std::option::Option::Some(input.into());
        self
    }
    /// Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', 'LINK', or 'AV1'
    pub fn set_codec(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.codec = input;
        self
    }
    /// Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', 'LINK', or 'AV1'
    pub fn get_codec(&self) -> &::std::option::Option<::std::string::String> {
        &self.codec
    }
    /// Placeholder documentation for MaxResults
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// Placeholder documentation for MaxResults
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// Placeholder documentation for MaxResults
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'
    pub fn maximum_bitrate(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.maximum_bitrate = ::std::option::Option::Some(input.into());
        self
    }
    /// Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'
    pub fn set_maximum_bitrate(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.maximum_bitrate = input;
        self
    }
    /// Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'
    pub fn get_maximum_bitrate(&self) -> &::std::option::Option<::std::string::String> {
        &self.maximum_bitrate
    }
    /// Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'
    pub fn maximum_framerate(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.maximum_framerate = ::std::option::Option::Some(input.into());
        self
    }
    /// Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'
    pub fn set_maximum_framerate(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.maximum_framerate = input;
        self
    }
    /// Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'
    pub fn get_maximum_framerate(&self) -> &::std::option::Option<::std::string::String> {
        &self.maximum_framerate
    }
    /// Placeholder documentation for __string
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// Placeholder documentation for __string
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// Placeholder documentation for __string
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'
    pub fn resolution(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resolution = ::std::option::Option::Some(input.into());
        self
    }
    /// Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'
    pub fn set_resolution(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resolution = input;
        self
    }
    /// Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'
    pub fn get_resolution(&self) -> &::std::option::Option<::std::string::String> {
        &self.resolution
    }
    /// Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'
    pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_type = ::std::option::Option::Some(input.into());
        self
    }
    /// Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'
    pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_type = input;
        self
    }
    /// Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'
    pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_type
    }
    /// Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'
    pub fn special_feature(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.special_feature = ::std::option::Option::Some(input.into());
        self
    }
    /// Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'
    pub fn set_special_feature(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.special_feature = input;
        self
    }
    /// Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'
    pub fn get_special_feature(&self) -> &::std::option::Option<::std::string::String> {
        &self.special_feature
    }
    /// Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'
    pub fn video_quality(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.video_quality = ::std::option::Option::Some(input.into());
        self
    }
    /// Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'
    pub fn set_video_quality(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.video_quality = input;
        self
    }
    /// Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'
    pub fn get_video_quality(&self) -> &::std::option::Option<::std::string::String> {
        &self.video_quality
    }
    /// Consumes the builder and constructs a [`ListReservationsInput`](crate::operation::list_reservations::ListReservationsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::list_reservations::ListReservationsInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_reservations::ListReservationsInput {
            channel_class: self.channel_class,
            codec: self.codec,
            max_results: self.max_results,
            maximum_bitrate: self.maximum_bitrate,
            maximum_framerate: self.maximum_framerate,
            next_token: self.next_token,
            resolution: self.resolution,
            resource_type: self.resource_type,
            special_feature: self.special_feature,
            video_quality: self.video_quality,
        })
    }
}