pub use crate::operation::delete_inbound_cross_cluster_search_connection::_delete_inbound_cross_cluster_search_connection_output::DeleteInboundCrossClusterSearchConnectionOutputBuilder;
pub use crate::operation::delete_inbound_cross_cluster_search_connection::_delete_inbound_cross_cluster_search_connection_input::DeleteInboundCrossClusterSearchConnectionInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct DeleteInboundCrossClusterSearchConnectionFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::delete_inbound_cross_cluster_search_connection::builders::DeleteInboundCrossClusterSearchConnectionInputBuilder,
}
impl DeleteInboundCrossClusterSearchConnectionFluentBuilder {
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::delete_inbound_cross_cluster_search_connection::DeleteInboundCrossClusterSearchConnection, ::aws_http::retry::AwsResponseRetryClassifier,>,
::aws_smithy_http::result::SdkError<crate::operation::delete_inbound_cross_cluster_search_connection::DeleteInboundCrossClusterSearchConnectionError>
>{
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::delete_inbound_cross_cluster_search_connection::DeleteInboundCrossClusterSearchConnectionOutput, ::aws_smithy_http::result::SdkError<crate::operation::delete_inbound_cross_cluster_search_connection::DeleteInboundCrossClusterSearchConnectionError>>
{
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::delete_inbound_cross_cluster_search_connection::DeleteInboundCrossClusterSearchConnectionOutput, ::aws_smithy_http::result::SdkError<crate::operation::delete_inbound_cross_cluster_search_connection::DeleteInboundCrossClusterSearchConnectionError>>
{
self.send_middleware().await
}
pub async fn customize(self) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<crate::operation::delete_inbound_cross_cluster_search_connection::DeleteInboundCrossClusterSearchConnection, ::aws_http::retry::AwsResponseRetryClassifier,>,
::aws_smithy_http::result::SdkError<crate::operation::delete_inbound_cross_cluster_search_connection::DeleteInboundCrossClusterSearchConnectionError>
>{
self.customize_middleware().await
}
pub fn cross_cluster_search_connection_id(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.cross_cluster_search_connection_id(input.into());
self
}
pub fn set_cross_cluster_search_connection_id(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_cross_cluster_search_connection_id(input);
self
}
}