#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateProfileInput {
pub domain_name: ::std::option::Option<::std::string::String>,
pub profile_id: ::std::option::Option<::std::string::String>,
pub additional_information: ::std::option::Option<::std::string::String>,
pub account_number: ::std::option::Option<::std::string::String>,
pub party_type: ::std::option::Option<crate::types::PartyType>,
pub business_name: ::std::option::Option<::std::string::String>,
pub first_name: ::std::option::Option<::std::string::String>,
pub middle_name: ::std::option::Option<::std::string::String>,
pub last_name: ::std::option::Option<::std::string::String>,
pub birth_date: ::std::option::Option<::std::string::String>,
pub gender: ::std::option::Option<crate::types::Gender>,
pub phone_number: ::std::option::Option<::std::string::String>,
pub mobile_phone_number: ::std::option::Option<::std::string::String>,
pub home_phone_number: ::std::option::Option<::std::string::String>,
pub business_phone_number: ::std::option::Option<::std::string::String>,
pub email_address: ::std::option::Option<::std::string::String>,
pub personal_email_address: ::std::option::Option<::std::string::String>,
pub business_email_address: ::std::option::Option<::std::string::String>,
pub address: ::std::option::Option<crate::types::UpdateAddress>,
pub shipping_address: ::std::option::Option<crate::types::UpdateAddress>,
pub mailing_address: ::std::option::Option<crate::types::UpdateAddress>,
pub billing_address: ::std::option::Option<crate::types::UpdateAddress>,
pub attributes: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub party_type_string: ::std::option::Option<::std::string::String>,
pub gender_string: ::std::option::Option<::std::string::String>,
}
impl UpdateProfileInput {
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn profile_id(&self) -> ::std::option::Option<&str> {
self.profile_id.as_deref()
}
pub fn additional_information(&self) -> ::std::option::Option<&str> {
self.additional_information.as_deref()
}
pub fn account_number(&self) -> ::std::option::Option<&str> {
self.account_number.as_deref()
}
pub fn party_type(&self) -> ::std::option::Option<&crate::types::PartyType> {
self.party_type.as_ref()
}
pub fn business_name(&self) -> ::std::option::Option<&str> {
self.business_name.as_deref()
}
pub fn first_name(&self) -> ::std::option::Option<&str> {
self.first_name.as_deref()
}
pub fn middle_name(&self) -> ::std::option::Option<&str> {
self.middle_name.as_deref()
}
pub fn last_name(&self) -> ::std::option::Option<&str> {
self.last_name.as_deref()
}
pub fn birth_date(&self) -> ::std::option::Option<&str> {
self.birth_date.as_deref()
}
pub fn gender(&self) -> ::std::option::Option<&crate::types::Gender> {
self.gender.as_ref()
}
pub fn phone_number(&self) -> ::std::option::Option<&str> {
self.phone_number.as_deref()
}
pub fn mobile_phone_number(&self) -> ::std::option::Option<&str> {
self.mobile_phone_number.as_deref()
}
pub fn home_phone_number(&self) -> ::std::option::Option<&str> {
self.home_phone_number.as_deref()
}
pub fn business_phone_number(&self) -> ::std::option::Option<&str> {
self.business_phone_number.as_deref()
}
pub fn email_address(&self) -> ::std::option::Option<&str> {
self.email_address.as_deref()
}
pub fn personal_email_address(&self) -> ::std::option::Option<&str> {
self.personal_email_address.as_deref()
}
pub fn business_email_address(&self) -> ::std::option::Option<&str> {
self.business_email_address.as_deref()
}
pub fn address(&self) -> ::std::option::Option<&crate::types::UpdateAddress> {
self.address.as_ref()
}
pub fn shipping_address(&self) -> ::std::option::Option<&crate::types::UpdateAddress> {
self.shipping_address.as_ref()
}
pub fn mailing_address(&self) -> ::std::option::Option<&crate::types::UpdateAddress> {
self.mailing_address.as_ref()
}
pub fn billing_address(&self) -> ::std::option::Option<&crate::types::UpdateAddress> {
self.billing_address.as_ref()
}
pub fn attributes(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.attributes.as_ref()
}
pub fn party_type_string(&self) -> ::std::option::Option<&str> {
self.party_type_string.as_deref()
}
pub fn gender_string(&self) -> ::std::option::Option<&str> {
self.gender_string.as_deref()
}
}
impl ::std::fmt::Debug for UpdateProfileInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateProfileInput");
formatter.field("domain_name", &self.domain_name);
formatter.field("profile_id", &self.profile_id);
formatter.field("additional_information", &"*** Sensitive Data Redacted ***");
formatter.field("account_number", &"*** Sensitive Data Redacted ***");
formatter.field("party_type", &"*** Sensitive Data Redacted ***");
formatter.field("business_name", &"*** Sensitive Data Redacted ***");
formatter.field("first_name", &"*** Sensitive Data Redacted ***");
formatter.field("middle_name", &"*** Sensitive Data Redacted ***");
formatter.field("last_name", &"*** Sensitive Data Redacted ***");
formatter.field("birth_date", &"*** Sensitive Data Redacted ***");
formatter.field("gender", &"*** Sensitive Data Redacted ***");
formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("mobile_phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("home_phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("business_phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("email_address", &"*** Sensitive Data Redacted ***");
formatter.field("personal_email_address", &"*** Sensitive Data Redacted ***");
formatter.field("business_email_address", &"*** Sensitive Data Redacted ***");
formatter.field("address", &"*** Sensitive Data Redacted ***");
formatter.field("shipping_address", &"*** Sensitive Data Redacted ***");
formatter.field("mailing_address", &"*** Sensitive Data Redacted ***");
formatter.field("billing_address", &"*** Sensitive Data Redacted ***");
formatter.field("attributes", &"*** Sensitive Data Redacted ***");
formatter.field("party_type_string", &"*** Sensitive Data Redacted ***");
formatter.field("gender_string", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl UpdateProfileInput {
pub fn builder() -> crate::operation::update_profile::builders::UpdateProfileInputBuilder {
crate::operation::update_profile::builders::UpdateProfileInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateProfileInputBuilder {
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) profile_id: ::std::option::Option<::std::string::String>,
pub(crate) additional_information: ::std::option::Option<::std::string::String>,
pub(crate) account_number: ::std::option::Option<::std::string::String>,
pub(crate) party_type: ::std::option::Option<crate::types::PartyType>,
pub(crate) business_name: ::std::option::Option<::std::string::String>,
pub(crate) first_name: ::std::option::Option<::std::string::String>,
pub(crate) middle_name: ::std::option::Option<::std::string::String>,
pub(crate) last_name: ::std::option::Option<::std::string::String>,
pub(crate) birth_date: ::std::option::Option<::std::string::String>,
pub(crate) gender: ::std::option::Option<crate::types::Gender>,
pub(crate) phone_number: ::std::option::Option<::std::string::String>,
pub(crate) mobile_phone_number: ::std::option::Option<::std::string::String>,
pub(crate) home_phone_number: ::std::option::Option<::std::string::String>,
pub(crate) business_phone_number: ::std::option::Option<::std::string::String>,
pub(crate) email_address: ::std::option::Option<::std::string::String>,
pub(crate) personal_email_address: ::std::option::Option<::std::string::String>,
pub(crate) business_email_address: ::std::option::Option<::std::string::String>,
pub(crate) address: ::std::option::Option<crate::types::UpdateAddress>,
pub(crate) shipping_address: ::std::option::Option<crate::types::UpdateAddress>,
pub(crate) mailing_address: ::std::option::Option<crate::types::UpdateAddress>,
pub(crate) billing_address: ::std::option::Option<crate::types::UpdateAddress>,
pub(crate) attributes: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) party_type_string: ::std::option::Option<::std::string::String>,
pub(crate) gender_string: ::std::option::Option<::std::string::String>,
}
impl UpdateProfileInputBuilder {
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_name
}
pub fn profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_id = input;
self
}
pub fn get_profile_id(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_id
}
pub fn additional_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.additional_information = ::std::option::Option::Some(input.into());
self
}
pub fn set_additional_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.additional_information = input;
self
}
pub fn get_additional_information(&self) -> &::std::option::Option<::std::string::String> {
&self.additional_information
}
pub fn account_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_account_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account_number = input;
self
}
pub fn get_account_number(&self) -> &::std::option::Option<::std::string::String> {
&self.account_number
}
pub fn party_type(mut self, input: crate::types::PartyType) -> Self {
self.party_type = ::std::option::Option::Some(input);
self
}
pub fn set_party_type(mut self, input: ::std::option::Option<crate::types::PartyType>) -> Self {
self.party_type = input;
self
}
pub fn get_party_type(&self) -> &::std::option::Option<crate::types::PartyType> {
&self.party_type
}
pub fn business_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.business_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_business_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.business_name = input;
self
}
pub fn get_business_name(&self) -> &::std::option::Option<::std::string::String> {
&self.business_name
}
pub fn first_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.first_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_first_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.first_name = input;
self
}
pub fn get_first_name(&self) -> &::std::option::Option<::std::string::String> {
&self.first_name
}
pub fn middle_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.middle_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_middle_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.middle_name = input;
self
}
pub fn get_middle_name(&self) -> &::std::option::Option<::std::string::String> {
&self.middle_name
}
pub fn last_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.last_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_last_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.last_name = input;
self
}
pub fn get_last_name(&self) -> &::std::option::Option<::std::string::String> {
&self.last_name
}
pub fn birth_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.birth_date = ::std::option::Option::Some(input.into());
self
}
pub fn set_birth_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.birth_date = input;
self
}
pub fn get_birth_date(&self) -> &::std::option::Option<::std::string::String> {
&self.birth_date
}
pub fn gender(mut self, input: crate::types::Gender) -> Self {
self.gender = ::std::option::Option::Some(input);
self
}
pub fn set_gender(mut self, input: ::std::option::Option<crate::types::Gender>) -> Self {
self.gender = input;
self
}
pub fn get_gender(&self) -> &::std::option::Option<crate::types::Gender> {
&self.gender
}
pub fn phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.phone_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.phone_number = input;
self
}
pub fn get_phone_number(&self) -> &::std::option::Option<::std::string::String> {
&self.phone_number
}
pub fn mobile_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.mobile_phone_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_mobile_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.mobile_phone_number = input;
self
}
pub fn get_mobile_phone_number(&self) -> &::std::option::Option<::std::string::String> {
&self.mobile_phone_number
}
pub fn home_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.home_phone_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_home_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.home_phone_number = input;
self
}
pub fn get_home_phone_number(&self) -> &::std::option::Option<::std::string::String> {
&self.home_phone_number
}
pub fn business_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.business_phone_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_business_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.business_phone_number = input;
self
}
pub fn get_business_phone_number(&self) -> &::std::option::Option<::std::string::String> {
&self.business_phone_number
}
pub fn email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.email_address = ::std::option::Option::Some(input.into());
self
}
pub fn set_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.email_address = input;
self
}
pub fn get_email_address(&self) -> &::std::option::Option<::std::string::String> {
&self.email_address
}
pub fn personal_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.personal_email_address = ::std::option::Option::Some(input.into());
self
}
pub fn set_personal_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.personal_email_address = input;
self
}
pub fn get_personal_email_address(&self) -> &::std::option::Option<::std::string::String> {
&self.personal_email_address
}
pub fn business_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.business_email_address = ::std::option::Option::Some(input.into());
self
}
pub fn set_business_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.business_email_address = input;
self
}
pub fn get_business_email_address(&self) -> &::std::option::Option<::std::string::String> {
&self.business_email_address
}
pub fn address(mut self, input: crate::types::UpdateAddress) -> Self {
self.address = ::std::option::Option::Some(input);
self
}
pub fn set_address(mut self, input: ::std::option::Option<crate::types::UpdateAddress>) -> Self {
self.address = input;
self
}
pub fn get_address(&self) -> &::std::option::Option<crate::types::UpdateAddress> {
&self.address
}
pub fn shipping_address(mut self, input: crate::types::UpdateAddress) -> Self {
self.shipping_address = ::std::option::Option::Some(input);
self
}
pub fn set_shipping_address(mut self, input: ::std::option::Option<crate::types::UpdateAddress>) -> Self {
self.shipping_address = input;
self
}
pub fn get_shipping_address(&self) -> &::std::option::Option<crate::types::UpdateAddress> {
&self.shipping_address
}
pub fn mailing_address(mut self, input: crate::types::UpdateAddress) -> Self {
self.mailing_address = ::std::option::Option::Some(input);
self
}
pub fn set_mailing_address(mut self, input: ::std::option::Option<crate::types::UpdateAddress>) -> Self {
self.mailing_address = input;
self
}
pub fn get_mailing_address(&self) -> &::std::option::Option<crate::types::UpdateAddress> {
&self.mailing_address
}
pub fn billing_address(mut self, input: crate::types::UpdateAddress) -> Self {
self.billing_address = ::std::option::Option::Some(input);
self
}
pub fn set_billing_address(mut self, input: ::std::option::Option<crate::types::UpdateAddress>) -> Self {
self.billing_address = input;
self
}
pub fn get_billing_address(&self) -> &::std::option::Option<crate::types::UpdateAddress> {
&self.billing_address
}
pub fn attributes(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = ::std::option::Option::Some(hash_map);
self
}
pub fn set_attributes(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.attributes = input;
self
}
pub fn get_attributes(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.attributes
}
pub fn party_type_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.party_type_string = ::std::option::Option::Some(input.into());
self
}
pub fn set_party_type_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.party_type_string = input;
self
}
pub fn get_party_type_string(&self) -> &::std::option::Option<::std::string::String> {
&self.party_type_string
}
pub fn gender_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.gender_string = ::std::option::Option::Some(input.into());
self
}
pub fn set_gender_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.gender_string = input;
self
}
pub fn get_gender_string(&self) -> &::std::option::Option<::std::string::String> {
&self.gender_string
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_profile::UpdateProfileInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_profile::UpdateProfileInput {
domain_name: self.domain_name,
profile_id: self.profile_id,
additional_information: self.additional_information,
account_number: self.account_number,
party_type: self.party_type,
business_name: self.business_name,
first_name: self.first_name,
middle_name: self.middle_name,
last_name: self.last_name,
birth_date: self.birth_date,
gender: self.gender,
phone_number: self.phone_number,
mobile_phone_number: self.mobile_phone_number,
home_phone_number: self.home_phone_number,
business_phone_number: self.business_phone_number,
email_address: self.email_address,
personal_email_address: self.personal_email_address,
business_email_address: self.business_email_address,
address: self.address,
shipping_address: self.shipping_address,
mailing_address: self.mailing_address,
billing_address: self.billing_address,
attributes: self.attributes,
party_type_string: self.party_type_string,
gender_string: self.gender_string,
})
}
}
impl ::std::fmt::Debug for UpdateProfileInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateProfileInputBuilder");
formatter.field("domain_name", &self.domain_name);
formatter.field("profile_id", &self.profile_id);
formatter.field("additional_information", &"*** Sensitive Data Redacted ***");
formatter.field("account_number", &"*** Sensitive Data Redacted ***");
formatter.field("party_type", &"*** Sensitive Data Redacted ***");
formatter.field("business_name", &"*** Sensitive Data Redacted ***");
formatter.field("first_name", &"*** Sensitive Data Redacted ***");
formatter.field("middle_name", &"*** Sensitive Data Redacted ***");
formatter.field("last_name", &"*** Sensitive Data Redacted ***");
formatter.field("birth_date", &"*** Sensitive Data Redacted ***");
formatter.field("gender", &"*** Sensitive Data Redacted ***");
formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("mobile_phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("home_phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("business_phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("email_address", &"*** Sensitive Data Redacted ***");
formatter.field("personal_email_address", &"*** Sensitive Data Redacted ***");
formatter.field("business_email_address", &"*** Sensitive Data Redacted ***");
formatter.field("address", &"*** Sensitive Data Redacted ***");
formatter.field("shipping_address", &"*** Sensitive Data Redacted ***");
formatter.field("mailing_address", &"*** Sensitive Data Redacted ***");
formatter.field("billing_address", &"*** Sensitive Data Redacted ***");
formatter.field("attributes", &"*** Sensitive Data Redacted ***");
formatter.field("party_type_string", &"*** Sensitive Data Redacted ***");
formatter.field("gender_string", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}