aws-sdk-medialive 0.26.0

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

/// Placeholder documentation for ListChannelsRequest
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListChannelsInput {
    /// Placeholder documentation for MaxResults
    #[doc(hidden)]
    pub max_results: std::option::Option<i32>,
    /// Placeholder documentation for __string
    #[doc(hidden)]
    pub next_token: std::option::Option<std::string::String>,
}
impl ListChannelsInput {
    /// 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 ListChannelsInput {
    /// Creates a new builder-style object to manufacture [`ListChannelsInput`](crate::operation::list_channels::ListChannelsInput).
    pub fn builder() -> crate::operation::list_channels::builders::ListChannelsInputBuilder {
        crate::operation::list_channels::builders::ListChannelsInputBuilder::default()
    }
}

/// A builder for [`ListChannelsInput`](crate::operation::list_channels::ListChannelsInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ListChannelsInputBuilder {
    pub(crate) max_results: std::option::Option<i32>,
    pub(crate) next_token: std::option::Option<std::string::String>,
}
impl ListChannelsInputBuilder {
    /// Placeholder documentation for MaxResults
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = 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 __string
    pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
        self.next_token = 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
    }
    /// Consumes the builder and constructs a [`ListChannelsInput`](crate::operation::list_channels::ListChannelsInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::list_channels::ListChannelsInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::list_channels::ListChannelsInput {
            max_results: self.max_results,
            next_token: self.next_token,
        })
    }
}