aws-sdk-quicksight 1.135.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 UpdateAccountCustomizationInput {
    /// <p>The ID for the Amazon Web Services account that you want to update Quick Sight customizations for.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>The namespace that you want to update Quick Sight customizations for.</p>
    pub namespace: ::std::option::Option<::std::string::String>,
    /// <p>The Quick Sight customizations you're updating.</p>
    pub account_customization: ::std::option::Option<crate::types::AccountCustomization>,
}
impl UpdateAccountCustomizationInput {
    /// <p>The ID for the Amazon Web Services account that you want to update Quick Sight customizations for.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The namespace that you want to update Quick Sight customizations for.</p>
    pub fn namespace(&self) -> ::std::option::Option<&str> {
        self.namespace.as_deref()
    }
    /// <p>The Quick Sight customizations you're updating.</p>
    pub fn account_customization(&self) -> ::std::option::Option<&crate::types::AccountCustomization> {
        self.account_customization.as_ref()
    }
}
impl UpdateAccountCustomizationInput {
    /// Creates a new builder-style object to manufacture [`UpdateAccountCustomizationInput`](crate::operation::update_account_customization::UpdateAccountCustomizationInput).
    pub fn builder() -> crate::operation::update_account_customization::builders::UpdateAccountCustomizationInputBuilder {
        crate::operation::update_account_customization::builders::UpdateAccountCustomizationInputBuilder::default()
    }
}

/// A builder for [`UpdateAccountCustomizationInput`](crate::operation::update_account_customization::UpdateAccountCustomizationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAccountCustomizationInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) namespace: ::std::option::Option<::std::string::String>,
    pub(crate) account_customization: ::std::option::Option<crate::types::AccountCustomization>,
}
impl UpdateAccountCustomizationInputBuilder {
    /// <p>The ID for the Amazon Web Services account that you want to update Quick Sight customizations for.</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 for the Amazon Web Services account that you want to update Quick Sight customizations for.</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 for the Amazon Web Services account that you want to update Quick Sight customizations for.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>The namespace that you want to update Quick Sight customizations for.</p>
    pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.namespace = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The namespace that you want to update Quick Sight customizations for.</p>
    pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.namespace = input;
        self
    }
    /// <p>The namespace that you want to update Quick Sight customizations for.</p>
    pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
        &self.namespace
    }
    /// <p>The Quick Sight customizations you're updating.</p>
    /// This field is required.
    pub fn account_customization(mut self, input: crate::types::AccountCustomization) -> Self {
        self.account_customization = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Quick Sight customizations you're updating.</p>
    pub fn set_account_customization(mut self, input: ::std::option::Option<crate::types::AccountCustomization>) -> Self {
        self.account_customization = input;
        self
    }
    /// <p>The Quick Sight customizations you're updating.</p>
    pub fn get_account_customization(&self) -> &::std::option::Option<crate::types::AccountCustomization> {
        &self.account_customization
    }
    /// Consumes the builder and constructs a [`UpdateAccountCustomizationInput`](crate::operation::update_account_customization::UpdateAccountCustomizationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::update_account_customization::UpdateAccountCustomizationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::update_account_customization::UpdateAccountCustomizationInput {
            aws_account_id: self.aws_account_id,
            namespace: self.namespace,
            account_customization: self.account_customization,
        })
    }
}