pub use crate::operation::modify_transit_gateway::_modify_transit_gateway_output::ModifyTransitGatewayOutputBuilder;
pub use crate::operation::modify_transit_gateway::_modify_transit_gateway_input::ModifyTransitGatewayInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ModifyTransitGatewayFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::modify_transit_gateway::builders::ModifyTransitGatewayInputBuilder,
}
impl ModifyTransitGatewayFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::modify_transit_gateway::ModifyTransitGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::modify_transit_gateway::ModifyTransitGatewayError,
>,
> {
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)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::modify_transit_gateway::ModifyTransitGatewayOutput,
aws_smithy_http::result::SdkError<
crate::operation::modify_transit_gateway::ModifyTransitGatewayError,
>,
> {
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 fn transit_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transit_gateway_id(input.into());
self
}
pub fn set_transit_gateway_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transit_gateway_id(input);
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
pub fn options(mut self, input: crate::types::ModifyTransitGatewayOptions) -> Self {
self.inner = self.inner.options(input);
self
}
pub fn set_options(
mut self,
input: std::option::Option<crate::types::ModifyTransitGatewayOptions>,
) -> Self {
self.inner = self.inner.set_options(input);
self
}
pub fn dry_run(mut self, input: bool) -> Self {
self.inner = self.inner.dry_run(input);
self
}
pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_dry_run(input);
self
}
}