pub use crate::operation::create_app_payment_registration::_create_app_payment_registration_input::CreateAppPaymentRegistrationInputBuilder;
pub use crate::operation::create_app_payment_registration::_create_app_payment_registration_output::CreateAppPaymentRegistrationOutputBuilder;
impl crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_app_payment_registration();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateAppPaymentRegistrationFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_app_payment_registration::builders::CreateAppPaymentRegistrationInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationOutput,
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError,
> for CreateAppPaymentRegistrationFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationOutput,
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateAppPaymentRegistrationFluentBuilder {
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_app_payment_registration::builders::CreateAppPaymentRegistrationInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError,
::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_app_payment_registration::CreateAppPaymentRegistration::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_app_payment_registration::CreateAppPaymentRegistration::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationOutput,
crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError,
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 app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.app_id(input.into());
self
}
pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_app_id(input);
self
}
pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_app_id()
}
pub fn legal_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.legal_name(input.into());
self
}
pub fn set_legal_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_legal_name(input);
self
}
pub fn get_legal_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_legal_name()
}
pub fn developer_address(mut self, input: crate::types::DeveloperAddress) -> Self {
self.inner = self.inner.developer_address(input);
self
}
pub fn set_developer_address(mut self, input: ::std::option::Option<crate::types::DeveloperAddress>) -> Self {
self.inner = self.inner.set_developer_address(input);
self
}
pub fn get_developer_address(&self) -> &::std::option::Option<crate::types::DeveloperAddress> {
self.inner.get_developer_address()
}
pub fn tax_registration_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.tax_registration_number(input.into());
self
}
pub fn set_tax_registration_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_tax_registration_number(input);
self
}
pub fn get_tax_registration_number(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_tax_registration_number()
}
pub fn business_type(mut self, input: crate::types::BusinessType) -> Self {
self.inner = self.inner.business_type(input);
self
}
pub fn set_business_type(mut self, input: ::std::option::Option<crate::types::BusinessType>) -> Self {
self.inner = self.inner.set_business_type(input);
self
}
pub fn get_business_type(&self) -> &::std::option::Option<crate::types::BusinessType> {
self.inner.get_business_type()
}
pub fn email(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.email(input.into());
self
}
pub fn set_email(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_email(input);
self
}
pub fn get_email(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_email()
}
pub fn support_email(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.support_email(input.into());
self
}
pub fn set_support_email(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_support_email(input);
self
}
pub fn get_support_email(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_support_email()
}
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.display_name(input.into());
self
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_display_name(input);
self
}
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_display_name()
}
pub fn support_phone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.support_phone(input.into());
self
}
pub fn set_support_phone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_support_phone(input);
self
}
pub fn get_support_phone(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_support_phone()
}
pub fn invoice_logo(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.inner = self.inner.invoice_logo(input);
self
}
pub fn set_invoice_logo(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.inner = self.inner.set_invoice_logo(input);
self
}
pub fn get_invoice_logo(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
self.inner.get_invoice_logo()
}
pub fn tax_registrations(mut self, input: crate::types::TaxRegistration) -> Self {
self.inner = self.inner.tax_registrations(input);
self
}
pub fn set_tax_registrations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TaxRegistration>>) -> Self {
self.inner = self.inner.set_tax_registrations(input);
self
}
pub fn get_tax_registrations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TaxRegistration>> {
self.inner.get_tax_registrations()
}
pub fn return_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.return_url(input.into());
self
}
pub fn set_return_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_return_url(input);
self
}
pub fn get_return_url(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_return_url()
}
pub fn refresh_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.refresh_url(input.into());
self
}
pub fn set_refresh_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_refresh_url(input);
self
}
pub fn get_refresh_url(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_refresh_url()
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_token()
}
pub fn scope(mut self, input: crate::types::RequestScope) -> Self {
self.inner = self.inner.scope(input);
self
}
pub fn set_scope(mut self, input: ::std::option::Option<crate::types::RequestScope>) -> Self {
self.inner = self.inner.set_scope(input);
self
}
pub fn get_scope(&self) -> &::std::option::Option<crate::types::RequestScope> {
self.inner.get_scope()
}
}