pub use crate::operation::delete_transit_gateway_route::_delete_transit_gateway_route_output::DeleteTransitGatewayRouteOutputBuilder;
pub use crate::operation::delete_transit_gateway_route::_delete_transit_gateway_route_input::DeleteTransitGatewayRouteInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteTransitGatewayRouteFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::delete_transit_gateway_route::builders::DeleteTransitGatewayRouteInputBuilder
}
impl DeleteTransitGatewayRouteFluentBuilder {
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::delete_transit_gateway_route::DeleteTransitGatewayRoute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError,
>,
> {
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::delete_transit_gateway_route::DeleteTransitGatewayRouteOutput,
aws_smithy_http::result::SdkError<
crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteError,
>,
> {
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_route_table_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transit_gateway_route_table_id(input.into());
self
}
pub fn set_transit_gateway_route_table_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transit_gateway_route_table_id(input);
self
}
pub fn destination_cidr_block(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.destination_cidr_block(input.into());
self
}
pub fn set_destination_cidr_block(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_destination_cidr_block(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
}
}