pub struct Builder { /* private fields */ }
Expand description
A builder for DeleteVpcEndpointConnectionNotificationsInput
.
Implementations§
source§impl Builder
impl Builder
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 connection_notification_ids(self, input: impl Into<String>) -> Self
pub fn connection_notification_ids(self, input: impl Into<String>) -> Self
Appends an item to connection_notification_ids
.
To override the contents of this collection use set_connection_notification_ids
.
One or more notification IDs.
sourcepub fn set_connection_notification_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_connection_notification_ids(self, input: Option<Vec<String>>) -> Self
One or more notification IDs.
sourcepub fn build(
self
) -> Result<DeleteVpcEndpointConnectionNotificationsInput, BuildError>
pub fn build(
self
) -> Result<DeleteVpcEndpointConnectionNotificationsInput, BuildError>
Consumes the builder and constructs a DeleteVpcEndpointConnectionNotificationsInput
.
Examples found in repository?
31327 31328 31329 31330 31331 31332 31333 31334 31335 31336 31337 31338 31339 31340 31341 31342 31343 31344 31345 31346 31347 31348 31349 31350 31351 31352 31353 31354 31355 31356 31357 31358 31359 31360 31361 31362 31363 31364 31365 31366 31367 31368 31369 31370 31371 31372 31373
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteVpcEndpointConnectionNotifications,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::DeleteVpcEndpointConnectionNotificationsError,
>,
> {
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::DeleteVpcEndpointConnectionNotificationsOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteVpcEndpointConnectionNotificationsError,
>,
> {
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
}