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 DescribeScheduleRequest
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeScheduleInput {
    /// Id of the channel whose schedule is being updated.
    pub channel_id: ::std::option::Option<::std::string::String>,
    /// Placeholder documentation for MaxResults
    pub max_results: ::std::option::Option<i32>,
    /// Placeholder documentation for __string
    pub next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeScheduleInput {
    /// Id of the channel whose schedule is being updated.
    pub fn channel_id(&self) -> ::std::option::Option<&str> {
        self.channel_id.as_deref()
    }
    /// Placeholder documentation for MaxResults
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// Placeholder documentation for __string
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl DescribeScheduleInput {
    /// Creates a new builder-style object to manufacture [`DescribeScheduleInput`](crate::operation::describe_schedule::DescribeScheduleInput).
    pub fn builder() -> crate::operation::describe_schedule::builders::DescribeScheduleInputBuilder {
        crate::operation::describe_schedule::builders::DescribeScheduleInputBuilder::default()
    }
}

/// A builder for [`DescribeScheduleInput`](crate::operation::describe_schedule::DescribeScheduleInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeScheduleInputBuilder {
    pub(crate) channel_id: ::std::option::Option<::std::string::String>,
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeScheduleInputBuilder {
    /// Id of the channel whose schedule is being updated.
    /// This field is required.
    pub fn channel_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.channel_id = ::std::option::Option::Some(input.into());
        self
    }
    /// Id of the channel whose schedule is being updated.
    pub fn set_channel_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.channel_id = input;
        self
    }
    /// Id of the channel whose schedule is being updated.
    pub fn get_channel_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.channel_id
    }
    /// 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
    }
    /// 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
    }
    /// Consumes the builder and constructs a [`DescribeScheduleInput`](crate::operation::describe_schedule::DescribeScheduleInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_schedule::DescribeScheduleInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_schedule::DescribeScheduleInput {
            channel_id: self.channel_id,
            max_results: self.max_results,
            next_token: self.next_token,
        })
    }
}