pub use crate::operation::update_global_settings::_update_global_settings_output::UpdateGlobalSettingsOutputBuilder;
pub use crate::operation::update_global_settings::_update_global_settings_input::UpdateGlobalSettingsInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateGlobalSettingsFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_global_settings::builders::UpdateGlobalSettingsInputBuilder,
}
impl UpdateGlobalSettingsFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
}
}
#[doc(hidden)]
pub async fn customize_middleware(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::update_global_settings::UpdateGlobalSettings,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::update_global_settings::UpdateGlobalSettingsError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
::std::result::Result::Ok(crate::client::customize::CustomizableOperation {
handle,
operation,
})
}
#[doc(hidden)]
pub async fn send_middleware(
self,
) -> ::std::result::Result<
crate::operation::update_global_settings::UpdateGlobalSettingsOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_global_settings::UpdateGlobalSettingsError,
>,
> {
let op = self
.inner
.build()
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_global_settings::UpdateGlobalSettingsOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_global_settings::UpdateGlobalSettingsError,
>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::update_global_settings::UpdateGlobalSettings,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::update_global_settings::UpdateGlobalSettingsError,
>,
> {
self.customize_middleware().await
}
pub fn business_calling(mut self, input: crate::types::BusinessCallingSettings) -> Self {
self.inner = self.inner.business_calling(input);
self
}
pub fn set_business_calling(
mut self,
input: ::std::option::Option<crate::types::BusinessCallingSettings>,
) -> Self {
self.inner = self.inner.set_business_calling(input);
self
}
pub fn voice_connector(mut self, input: crate::types::VoiceConnectorSettings) -> Self {
self.inner = self.inner.voice_connector(input);
self
}
pub fn set_voice_connector(
mut self,
input: ::std::option::Option<crate::types::VoiceConnectorSettings>,
) -> Self {
self.inner = self.inner.set_voice_connector(input);
self
}
}