aws_sdk_customerprofiles/operation/create_profile/
builders.rspub use crate::operation::create_profile::_create_profile_output::CreateProfileOutputBuilder;
pub use crate::operation::create_profile::_create_profile_input::CreateProfileInputBuilder;
impl crate::operation::create_profile::builders::CreateProfileInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_profile::CreateProfileOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_profile::CreateProfileError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_profile();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateProfileFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_profile::builders::CreateProfileInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_profile::CreateProfileOutput,
crate::operation::create_profile::CreateProfileError,
> for CreateProfileFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_profile::CreateProfileOutput,
crate::operation::create_profile::CreateProfileError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateProfileFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::create_profile::builders::CreateProfileInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_profile::CreateProfileOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_profile::CreateProfileError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::create_profile::CreateProfile::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_profile::CreateProfile::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_profile::CreateProfileOutput,
crate::operation::create_profile::CreateProfileError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_domain_name()
}
pub fn account_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.account_number(input.into());
self
}
pub fn set_account_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_account_number(input);
self
}
pub fn get_account_number(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_account_number()
}
pub fn additional_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.additional_information(input.into());
self
}
pub fn set_additional_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_additional_information(input);
self
}
pub fn get_additional_information(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_additional_information()
}
pub fn party_type(mut self, input: crate::types::PartyType) -> Self {
self.inner = self.inner.party_type(input);
self
}
pub fn set_party_type(mut self, input: ::std::option::Option<crate::types::PartyType>) -> Self {
self.inner = self.inner.set_party_type(input);
self
}
pub fn get_party_type(&self) -> &::std::option::Option<crate::types::PartyType> {
self.inner.get_party_type()
}
pub fn business_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.business_name(input.into());
self
}
pub fn set_business_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_business_name(input);
self
}
pub fn get_business_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_business_name()
}
pub fn first_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.first_name(input.into());
self
}
pub fn set_first_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_first_name(input);
self
}
pub fn get_first_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_first_name()
}
pub fn middle_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.middle_name(input.into());
self
}
pub fn set_middle_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_middle_name(input);
self
}
pub fn get_middle_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_middle_name()
}
pub fn last_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.last_name(input.into());
self
}
pub fn set_last_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_last_name(input);
self
}
pub fn get_last_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_last_name()
}
pub fn birth_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.birth_date(input.into());
self
}
pub fn set_birth_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_birth_date(input);
self
}
pub fn get_birth_date(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_birth_date()
}
pub fn gender(mut self, input: crate::types::Gender) -> Self {
self.inner = self.inner.gender(input);
self
}
pub fn set_gender(mut self, input: ::std::option::Option<crate::types::Gender>) -> Self {
self.inner = self.inner.set_gender(input);
self
}
pub fn get_gender(&self) -> &::std::option::Option<crate::types::Gender> {
self.inner.get_gender()
}
pub fn phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.phone_number(input.into());
self
}
pub fn set_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_phone_number(input);
self
}
pub fn get_phone_number(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_phone_number()
}
pub fn mobile_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.mobile_phone_number(input.into());
self
}
pub fn set_mobile_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_mobile_phone_number(input);
self
}
pub fn get_mobile_phone_number(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_mobile_phone_number()
}
pub fn home_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.home_phone_number(input.into());
self
}
pub fn set_home_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_home_phone_number(input);
self
}
pub fn get_home_phone_number(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_home_phone_number()
}
pub fn business_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.business_phone_number(input.into());
self
}
pub fn set_business_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_business_phone_number(input);
self
}
pub fn get_business_phone_number(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_business_phone_number()
}
pub fn email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.email_address(input.into());
self
}
pub fn set_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_email_address(input);
self
}
pub fn get_email_address(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_email_address()
}
pub fn personal_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.personal_email_address(input.into());
self
}
pub fn set_personal_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_personal_email_address(input);
self
}
pub fn get_personal_email_address(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_personal_email_address()
}
pub fn business_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.business_email_address(input.into());
self
}
pub fn set_business_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_business_email_address(input);
self
}
pub fn get_business_email_address(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_business_email_address()
}
pub fn address(mut self, input: crate::types::Address) -> Self {
self.inner = self.inner.address(input);
self
}
pub fn set_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
self.inner = self.inner.set_address(input);
self
}
pub fn get_address(&self) -> &::std::option::Option<crate::types::Address> {
self.inner.get_address()
}
pub fn shipping_address(mut self, input: crate::types::Address) -> Self {
self.inner = self.inner.shipping_address(input);
self
}
pub fn set_shipping_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
self.inner = self.inner.set_shipping_address(input);
self
}
pub fn get_shipping_address(&self) -> &::std::option::Option<crate::types::Address> {
self.inner.get_shipping_address()
}
pub fn mailing_address(mut self, input: crate::types::Address) -> Self {
self.inner = self.inner.mailing_address(input);
self
}
pub fn set_mailing_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
self.inner = self.inner.set_mailing_address(input);
self
}
pub fn get_mailing_address(&self) -> &::std::option::Option<crate::types::Address> {
self.inner.get_mailing_address()
}
pub fn billing_address(mut self, input: crate::types::Address) -> Self {
self.inner = self.inner.billing_address(input);
self
}
pub fn set_billing_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
self.inner = self.inner.set_billing_address(input);
self
}
pub fn get_billing_address(&self) -> &::std::option::Option<crate::types::Address> {
self.inner.get_billing_address()
}
pub fn attributes(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.attributes(k.into(), v.into());
self
}
pub fn set_attributes(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.inner = self.inner.set_attributes(input);
self
}
pub fn get_attributes(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_attributes()
}
pub fn party_type_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.party_type_string(input.into());
self
}
pub fn set_party_type_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_party_type_string(input);
self
}
pub fn get_party_type_string(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_party_type_string()
}
pub fn gender_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.gender_string(input.into());
self
}
pub fn set_gender_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_gender_string(input);
self
}
pub fn get_gender_string(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_gender_string()
}
}