pub use crate::operation::modify_transit_gateway_vpc_attachment::_modify_transit_gateway_vpc_attachment_output::ModifyTransitGatewayVpcAttachmentOutputBuilder;
pub use crate::operation::modify_transit_gateway_vpc_attachment::_modify_transit_gateway_vpc_attachment_input::ModifyTransitGatewayVpcAttachmentInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ModifyTransitGatewayVpcAttachmentFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentInputBuilder
}
impl ModifyTransitGatewayVpcAttachmentFluentBuilder {
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_vpc_attachment::ModifyTransitGatewayVpcAttachment, aws_http::retry::AwsResponseRetryClassifier,>,
aws_smithy_http::result::SdkError<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError>
>{
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_vpc_attachment::ModifyTransitGatewayVpcAttachmentOutput, aws_smithy_http::result::SdkError<crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError>>
{
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_attachment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transit_gateway_attachment_id(input.into());
self
}
pub fn set_transit_gateway_attachment_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transit_gateway_attachment_id(input);
self
}
pub fn add_subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.add_subnet_ids(input.into());
self
}
pub fn set_add_subnet_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_add_subnet_ids(input);
self
}
pub fn remove_subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.remove_subnet_ids(input.into());
self
}
pub fn set_remove_subnet_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_remove_subnet_ids(input);
self
}
pub fn options(
mut self,
input: crate::types::ModifyTransitGatewayVpcAttachmentRequestOptions,
) -> Self {
self.inner = self.inner.options(input);
self
}
pub fn set_options(
mut self,
input: std::option::Option<crate::types::ModifyTransitGatewayVpcAttachmentRequestOptions>,
) -> 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
}
}