pub struct Builder { /* private fields */ }
Expand description
A builder for DeleteTransitGatewayMulticastDomainInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn transit_gateway_multicast_domain_id(
self,
input: impl Into<String>
) -> Self
pub fn transit_gateway_multicast_domain_id(
self,
input: impl Into<String>
) -> Self
The ID of the transit gateway multicast domain.
sourcepub fn set_transit_gateway_multicast_domain_id(
self,
input: Option<String>
) -> Self
pub fn set_transit_gateway_multicast_domain_id(
self,
input: Option<String>
) -> Self
The ID of the transit gateway multicast domain.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn build(
self
) -> Result<DeleteTransitGatewayMulticastDomainInput, BuildError>
pub fn build(
self
) -> Result<DeleteTransitGatewayMulticastDomainInput, BuildError>
Consumes the builder and constructs a DeleteTransitGatewayMulticastDomainInput
.
Examples found in repository?
src/client.rs (line 30415)
30401 30402 30403 30404 30405 30406 30407 30408 30409 30410 30411 30412 30413 30414 30415 30416 30417 30418 30419 30420 30421 30422 30423 30424 30425 30426 30427 30428 30429 30430 30431 30432 30433 30434 30435 30436 30437 30438 30439 30440 30441 30442 30443 30444 30445 30446 30447
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteTransitGatewayMulticastDomain,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::DeleteTransitGatewayMulticastDomainError,
>,
> {
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::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteTransitGatewayMulticastDomainOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteTransitGatewayMulticastDomainError,
>,
> {
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
}