aws-sdk-quicksight 1.131.0

AWS SDK for Amazon QuickSight
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 DeleteBrandInput {
    /// <p>The ID of the Amazon Web Services account that owns the brand.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the Quick brand.</p>
    pub brand_id: ::std::option::Option<::std::string::String>,
}
impl DeleteBrandInput {
    /// <p>The ID of the Amazon Web Services account that owns the brand.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The ID of the Quick brand.</p>
    pub fn brand_id(&self) -> ::std::option::Option<&str> {
        self.brand_id.as_deref()
    }
}
impl DeleteBrandInput {
    /// Creates a new builder-style object to manufacture [`DeleteBrandInput`](crate::operation::delete_brand::DeleteBrandInput).
    pub fn builder() -> crate::operation::delete_brand::builders::DeleteBrandInputBuilder {
        crate::operation::delete_brand::builders::DeleteBrandInputBuilder::default()
    }
}

/// A builder for [`DeleteBrandInput`](crate::operation::delete_brand::DeleteBrandInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteBrandInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) brand_id: ::std::option::Option<::std::string::String>,
}
impl DeleteBrandInputBuilder {
    /// <p>The ID of the Amazon Web Services account that owns the brand.</p>
    /// This field is required.
    pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.aws_account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Amazon Web Services account that owns the brand.</p>
    pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.aws_account_id = input;
        self
    }
    /// <p>The ID of the Amazon Web Services account that owns the brand.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>The ID of the Quick brand.</p>
    /// This field is required.
    pub fn brand_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.brand_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Quick brand.</p>
    pub fn set_brand_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.brand_id = input;
        self
    }
    /// <p>The ID of the Quick brand.</p>
    pub fn get_brand_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.brand_id
    }
    /// Consumes the builder and constructs a [`DeleteBrandInput`](crate::operation::delete_brand::DeleteBrandInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::delete_brand::DeleteBrandInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_brand::DeleteBrandInput {
            aws_account_id: self.aws_account_id,
            brand_id: self.brand_id,
        })
    }
}