aws-sdk-mediapackage 1.112.0

AWS SDK for AWS Elemental MediaPackage
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[deprecated]
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RotateChannelCredentialsInput {
    /// The ID of the channel to update.
    pub id: ::std::option::Option<::std::string::String>,
}
impl RotateChannelCredentialsInput {
    /// The ID of the channel to update.
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
}
impl RotateChannelCredentialsInput {
    /// Creates a new builder-style object to manufacture [`RotateChannelCredentialsInput`](crate::operation::rotate_channel_credentials::RotateChannelCredentialsInput).
    pub fn builder() -> crate::operation::rotate_channel_credentials::builders::RotateChannelCredentialsInputBuilder {
        crate::operation::rotate_channel_credentials::builders::RotateChannelCredentialsInputBuilder::default()
    }
}

/// A builder for [`RotateChannelCredentialsInput`](crate::operation::rotate_channel_credentials::RotateChannelCredentialsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RotateChannelCredentialsInputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
}
impl RotateChannelCredentialsInputBuilder {
    /// The ID of the channel to update.
    /// This field is required.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// The ID of the channel to update.
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// The ID of the channel to update.
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// Consumes the builder and constructs a [`RotateChannelCredentialsInput`](crate::operation::rotate_channel_credentials::RotateChannelCredentialsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::rotate_channel_credentials::RotateChannelCredentialsInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::rotate_channel_credentials::RotateChannelCredentialsInput { id: self.id })
    }
}