pub use crate::operation::update_virtual_gateway::_update_virtual_gateway_output::UpdateVirtualGatewayOutputBuilder;
pub use crate::operation::update_virtual_gateway::_update_virtual_gateway_input::UpdateVirtualGatewayInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateVirtualGatewayFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_virtual_gateway::builders::UpdateVirtualGatewayInputBuilder,
}
impl UpdateVirtualGatewayFluentBuilder {
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_virtual_gateway::UpdateVirtualGateway,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::update_virtual_gateway::UpdateVirtualGatewayError,
>,
> {
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_virtual_gateway::UpdateVirtualGatewayOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_virtual_gateway::UpdateVirtualGatewayError,
>,
> {
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_virtual_gateway::UpdateVirtualGatewayOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_virtual_gateway::UpdateVirtualGatewayError,
>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::update_virtual_gateway::UpdateVirtualGateway,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::update_virtual_gateway::UpdateVirtualGatewayError,
>,
> {
self.customize_middleware().await
}
pub fn virtual_gateway_name(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.virtual_gateway_name(input.into());
self
}
pub fn set_virtual_gateway_name(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_virtual_gateway_name(input);
self
}
pub fn mesh_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.mesh_name(input.into());
self
}
pub fn set_mesh_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_mesh_name(input);
self
}
pub fn spec(mut self, input: crate::types::VirtualGatewaySpec) -> Self {
self.inner = self.inner.spec(input);
self
}
pub fn set_spec(
mut self,
input: ::std::option::Option<crate::types::VirtualGatewaySpec>,
) -> Self {
self.inner = self.inner.set_spec(input);
self
}
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 mesh_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.mesh_owner(input.into());
self
}
pub fn set_mesh_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_mesh_owner(input);
self
}
}