pub use crate::operation::update_service_integration::_update_service_integration_output::UpdateServiceIntegrationOutputBuilder;
pub use crate::operation::update_service_integration::_update_service_integration_input::UpdateServiceIntegrationInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateServiceIntegrationFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_service_integration::builders::UpdateServiceIntegrationInputBuilder,
}
impl UpdateServiceIntegrationFluentBuilder {
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_service_integration::UpdateServiceIntegration,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::update_service_integration::UpdateServiceIntegrationError,
>,
> {
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_service_integration::UpdateServiceIntegrationOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_service_integration::UpdateServiceIntegrationError,
>,
> {
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_service_integration::UpdateServiceIntegrationOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_service_integration::UpdateServiceIntegrationError,
>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::update_service_integration::UpdateServiceIntegration,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::update_service_integration::UpdateServiceIntegrationError,
>,
> {
self.customize_middleware().await
}
pub fn service_integration(
mut self,
input: crate::types::UpdateServiceIntegrationConfig,
) -> Self {
self.inner = self.inner.service_integration(input);
self
}
pub fn set_service_integration(
mut self,
input: ::std::option::Option<crate::types::UpdateServiceIntegrationConfig>,
) -> Self {
self.inner = self.inner.set_service_integration(input);
self
}
}