#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateBrandInput {
pub aws_account_id: ::std::option::Option<::std::string::String>,
pub brand_id: ::std::option::Option<::std::string::String>,
pub brand_definition: ::std::option::Option<crate::types::BrandDefinition>,
}
impl UpdateBrandInput {
pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
self.aws_account_id.as_deref()
}
pub fn brand_id(&self) -> ::std::option::Option<&str> {
self.brand_id.as_deref()
}
pub fn brand_definition(&self) -> ::std::option::Option<&crate::types::BrandDefinition> {
self.brand_definition.as_ref()
}
}
impl UpdateBrandInput {
pub fn builder() -> crate::operation::update_brand::builders::UpdateBrandInputBuilder {
crate::operation::update_brand::builders::UpdateBrandInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateBrandInputBuilder {
pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
pub(crate) brand_id: ::std::option::Option<::std::string::String>,
pub(crate) brand_definition: ::std::option::Option<crate::types::BrandDefinition>,
}
impl UpdateBrandInputBuilder {
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 brand_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.brand_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_brand_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.brand_id = input;
self
}
pub fn get_brand_id(&self) -> &::std::option::Option<::std::string::String> {
&self.brand_id
}
pub fn brand_definition(mut self, input: crate::types::BrandDefinition) -> Self {
self.brand_definition = ::std::option::Option::Some(input);
self
}
pub fn set_brand_definition(mut self, input: ::std::option::Option<crate::types::BrandDefinition>) -> Self {
self.brand_definition = input;
self
}
pub fn get_brand_definition(&self) -> &::std::option::Option<crate::types::BrandDefinition> {
&self.brand_definition
}
pub fn build(self) -> ::std::result::Result<crate::operation::update_brand::UpdateBrandInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_brand::UpdateBrandInput {
aws_account_id: self.aws_account_id,
brand_id: self.brand_id,
brand_definition: self.brand_definition,
})
}
}