aws-sdk-cloudtrail 1.104.0

AWS SDK for AWS CloudTrail
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 DeleteChannelInput {
    /// <p>The ARN or the <code>UUID</code> value of the channel that you want to delete.</p>
    pub channel: ::std::option::Option<::std::string::String>,
}
impl DeleteChannelInput {
    /// <p>The ARN or the <code>UUID</code> value of the channel that you want to delete.</p>
    pub fn channel(&self) -> ::std::option::Option<&str> {
        self.channel.as_deref()
    }
}
impl DeleteChannelInput {
    /// Creates a new builder-style object to manufacture [`DeleteChannelInput`](crate::operation::delete_channel::DeleteChannelInput).
    pub fn builder() -> crate::operation::delete_channel::builders::DeleteChannelInputBuilder {
        crate::operation::delete_channel::builders::DeleteChannelInputBuilder::default()
    }
}

/// A builder for [`DeleteChannelInput`](crate::operation::delete_channel::DeleteChannelInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteChannelInputBuilder {
    pub(crate) channel: ::std::option::Option<::std::string::String>,
}
impl DeleteChannelInputBuilder {
    /// <p>The ARN or the <code>UUID</code> value of the channel that you want to delete.</p>
    /// This field is required.
    pub fn channel(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.channel = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN or the <code>UUID</code> value of the channel that you want to delete.</p>
    pub fn set_channel(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.channel = input;
        self
    }
    /// <p>The ARN or the <code>UUID</code> value of the channel that you want to delete.</p>
    pub fn get_channel(&self) -> &::std::option::Option<::std::string::String> {
        &self.channel
    }
    /// Consumes the builder and constructs a [`DeleteChannelInput`](crate::operation::delete_channel::DeleteChannelInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_channel::DeleteChannelInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_channel::DeleteChannelInput { channel: self.channel })
    }
}