pub use crate::operation::update_routing_profile_default_outbound_queue::_update_routing_profile_default_outbound_queue_output::UpdateRoutingProfileDefaultOutboundQueueOutputBuilder;
pub use crate::operation::update_routing_profile_default_outbound_queue::_update_routing_profile_default_outbound_queue_input::UpdateRoutingProfileDefaultOutboundQueueInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateRoutingProfileDefaultOutboundQueueFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_routing_profile_default_outbound_queue::builders::UpdateRoutingProfileDefaultOutboundQueueInputBuilder,
}
impl UpdateRoutingProfileDefaultOutboundQueueFluentBuilder {
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_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueue, ::aws_http::retry::AwsResponseRetryClassifier,>,
::aws_smithy_http::result::SdkError<crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError>
>{
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_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueOutput, ::aws_smithy_http::result::SdkError<crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError>>
{
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_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueOutput, ::aws_smithy_http::result::SdkError<crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError>>
{
self.send_middleware().await
}
pub async fn customize(self) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueue, ::aws_http::retry::AwsResponseRetryClassifier,>,
::aws_smithy_http::result::SdkError<crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError>
>{
self.customize_middleware().await
}
pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.instance_id(input.into());
self
}
pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_instance_id(input);
self
}
pub fn routing_profile_id(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.routing_profile_id(input.into());
self
}
pub fn set_routing_profile_id(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_routing_profile_id(input);
self
}
pub fn default_outbound_queue_id(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.default_outbound_queue_id(input.into());
self
}
pub fn set_default_outbound_queue_id(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_default_outbound_queue_id(input);
self
}
}