aws-sdk-ivs 1.77.0

AWS SDK for Amazon Interactive Video Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetChannelOutput {
    /// <p></p>
    pub channel: ::std::option::Option<crate::types::Channel>,
    _request_id: Option<String>,
}
impl GetChannelOutput {
    /// <p></p>
    pub fn channel(&self) -> ::std::option::Option<&crate::types::Channel> {
        self.channel.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetChannelOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetChannelOutput {
    /// Creates a new builder-style object to manufacture [`GetChannelOutput`](crate::operation::get_channel::GetChannelOutput).
    pub fn builder() -> crate::operation::get_channel::builders::GetChannelOutputBuilder {
        crate::operation::get_channel::builders::GetChannelOutputBuilder::default()
    }
}

/// A builder for [`GetChannelOutput`](crate::operation::get_channel::GetChannelOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetChannelOutputBuilder {
    pub(crate) channel: ::std::option::Option<crate::types::Channel>,
    _request_id: Option<String>,
}
impl GetChannelOutputBuilder {
    /// <p></p>
    pub fn channel(mut self, input: crate::types::Channel) -> Self {
        self.channel = ::std::option::Option::Some(input);
        self
    }
    /// <p></p>
    pub fn set_channel(mut self, input: ::std::option::Option<crate::types::Channel>) -> Self {
        self.channel = input;
        self
    }
    /// <p></p>
    pub fn get_channel(&self) -> &::std::option::Option<crate::types::Channel> {
        &self.channel
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetChannelOutput`](crate::operation::get_channel::GetChannelOutput).
    pub fn build(self) -> crate::operation::get_channel::GetChannelOutput {
        crate::operation::get_channel::GetChannelOutput {
            channel: self.channel,
            _request_id: self._request_id,
        }
    }
}