pub use crate::operation::create_transit_gateway_peering_attachment::_create_transit_gateway_peering_attachment_output::CreateTransitGatewayPeeringAttachmentOutputBuilder;
pub use crate::operation::create_transit_gateway_peering_attachment::_create_transit_gateway_peering_attachment_input::CreateTransitGatewayPeeringAttachmentInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateTransitGatewayPeeringAttachmentFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentInputBuilder
}
impl CreateTransitGatewayPeeringAttachmentFluentBuilder {
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::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachment, aws_http::retry::AwsResponseRetryClassifier,>,
aws_smithy_http::result::SdkError<crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError>
>{
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::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentOutput, aws_smithy_http::result::SdkError<crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError>>
{
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 peer_transit_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.peer_transit_gateway_id(input.into());
self
}
pub fn set_peer_transit_gateway_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_peer_transit_gateway_id(input);
self
}
pub fn peer_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.peer_account_id(input.into());
self
}
pub fn set_peer_account_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_peer_account_id(input);
self
}
pub fn peer_region(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.peer_region(input.into());
self
}
pub fn set_peer_region(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_peer_region(input);
self
}
pub fn options(
mut self,
input: crate::types::CreateTransitGatewayPeeringAttachmentRequestOptions,
) -> Self {
self.inner = self.inner.options(input);
self
}
pub fn set_options(
mut self,
input: std::option::Option<
crate::types::CreateTransitGatewayPeeringAttachmentRequestOptions,
>,
) -> Self {
self.inner = self.inner.set_options(input);
self
}
pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
self.inner = self.inner.tag_specifications(input);
self
}
pub fn set_tag_specifications(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::TagSpecification>>,
) -> Self {
self.inner = self.inner.set_tag_specifications(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
}
}