#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAccountCustomizationInput {
pub aws_account_id: ::std::option::Option<::std::string::String>,
pub namespace: ::std::option::Option<::std::string::String>,
pub account_customization: ::std::option::Option<crate::types::AccountCustomization>,
}
impl UpdateAccountCustomizationInput {
pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
self.aws_account_id.as_deref()
}
pub fn namespace(&self) -> ::std::option::Option<&str> {
self.namespace.as_deref()
}
pub fn account_customization(&self) -> ::std::option::Option<&crate::types::AccountCustomization> {
self.account_customization.as_ref()
}
}
impl UpdateAccountCustomizationInput {
pub fn builder() -> crate::operation::update_account_customization::builders::UpdateAccountCustomizationInputBuilder {
crate::operation::update_account_customization::builders::UpdateAccountCustomizationInputBuilder::default()
}
}
#[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 {
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
}
pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.aws_account_id = input;
self
}
pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.aws_account_id
}
pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.namespace = ::std::option::Option::Some(input.into());
self
}
pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.namespace = input;
self
}
pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
&self.namespace
}
pub fn account_customization(mut self, input: crate::types::AccountCustomization) -> Self {
self.account_customization = ::std::option::Option::Some(input);
self
}
pub fn set_account_customization(mut self, input: ::std::option::Option<crate::types::AccountCustomization>) -> Self {
self.account_customization = input;
self
}
pub fn get_account_customization(&self) -> &::std::option::Option<crate::types::AccountCustomization> {
&self.account_customization
}
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,
})
}
}