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 StopChannelRequest
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StopChannelInput {
    /// A request to stop a running channel
    #[doc(hidden)]
    pub channel_id: std::option::Option<std::string::String>,
}
impl StopChannelInput {
    /// A request to stop a running channel
    pub fn channel_id(&self) -> std::option::Option<&str> {
        self.channel_id.as_deref()
    }
}
impl StopChannelInput {
    /// Creates a new builder-style object to manufacture [`StopChannelInput`](crate::operation::stop_channel::StopChannelInput).
    pub fn builder() -> crate::operation::stop_channel::builders::StopChannelInputBuilder {
        crate::operation::stop_channel::builders::StopChannelInputBuilder::default()
    }
}

/// A builder for [`StopChannelInput`](crate::operation::stop_channel::StopChannelInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct StopChannelInputBuilder {
    pub(crate) channel_id: std::option::Option<std::string::String>,
}
impl StopChannelInputBuilder {
    /// A request to stop a running channel
    pub fn channel_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.channel_id = Some(input.into());
        self
    }
    /// A request to stop a running channel
    pub fn set_channel_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.channel_id = input;
        self
    }
    /// Consumes the builder and constructs a [`StopChannelInput`](crate::operation::stop_channel::StopChannelInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::stop_channel::StopChannelInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::stop_channel::StopChannelInput {
            channel_id: self.channel_id,
        })
    }
}