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 StopMultiplexRequest
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StopMultiplexInput {
    /// The ID of the multiplex.
    #[doc(hidden)]
    pub multiplex_id: std::option::Option<std::string::String>,
}
impl StopMultiplexInput {
    /// The ID of the multiplex.
    pub fn multiplex_id(&self) -> std::option::Option<&str> {
        self.multiplex_id.as_deref()
    }
}
impl StopMultiplexInput {
    /// Creates a new builder-style object to manufacture [`StopMultiplexInput`](crate::operation::stop_multiplex::StopMultiplexInput).
    pub fn builder() -> crate::operation::stop_multiplex::builders::StopMultiplexInputBuilder {
        crate::operation::stop_multiplex::builders::StopMultiplexInputBuilder::default()
    }
}

/// A builder for [`StopMultiplexInput`](crate::operation::stop_multiplex::StopMultiplexInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct StopMultiplexInputBuilder {
    pub(crate) multiplex_id: std::option::Option<std::string::String>,
}
impl StopMultiplexInputBuilder {
    /// The ID of the multiplex.
    pub fn multiplex_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.multiplex_id = Some(input.into());
        self
    }
    /// The ID of the multiplex.
    pub fn set_multiplex_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.multiplex_id = input;
        self
    }
    /// Consumes the builder and constructs a [`StopMultiplexInput`](crate::operation::stop_multiplex::StopMultiplexInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::stop_multiplex::StopMultiplexInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::stop_multiplex::StopMultiplexInput {
            multiplex_id: self.multiplex_id,
        })
    }
}