Struct aws_sdk_backup::client::fluent_builders::CancelLegalHold
source · pub struct CancelLegalHold { /* private fields */ }
Expand description
Fluent builder constructing a request to CancelLegalHold
.
This action removes the specified legal hold on a recovery point. This action can only be performed by a user with sufficient permissions.
Implementations§
source§impl CancelLegalHold
impl CancelLegalHold
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CancelLegalHold, AwsResponseRetryClassifier>, SdkError<CancelLegalHoldError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CancelLegalHold, AwsResponseRetryClassifier>, SdkError<CancelLegalHoldError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CancelLegalHoldOutput, SdkError<CancelLegalHoldError>>
pub async fn send(
self
) -> Result<CancelLegalHoldOutput, SdkError<CancelLegalHoldError>>
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, which can be set when configuring the client.
sourcepub fn legal_hold_id(self, input: impl Into<String>) -> Self
pub fn legal_hold_id(self, input: impl Into<String>) -> Self
Legal hold ID required to remove the specified legal hold on a recovery point.
sourcepub fn set_legal_hold_id(self, input: Option<String>) -> Self
pub fn set_legal_hold_id(self, input: Option<String>) -> Self
Legal hold ID required to remove the specified legal hold on a recovery point.
sourcepub fn cancel_description(self, input: impl Into<String>) -> Self
pub fn cancel_description(self, input: impl Into<String>) -> Self
String describing the reason for removing the legal hold.
sourcepub fn set_cancel_description(self, input: Option<String>) -> Self
pub fn set_cancel_description(self, input: Option<String>) -> Self
String describing the reason for removing the legal hold.
sourcepub fn retain_record_in_days(self, input: i64) -> Self
pub fn retain_record_in_days(self, input: i64) -> Self
The integer amount in days specifying amount of days after this API operation to remove legal hold.
sourcepub fn set_retain_record_in_days(self, input: Option<i64>) -> Self
pub fn set_retain_record_in_days(self, input: Option<i64>) -> Self
The integer amount in days specifying amount of days after this API operation to remove legal hold.
Trait Implementations§
source§impl Clone for CancelLegalHold
impl Clone for CancelLegalHold
source§fn clone(&self) -> CancelLegalHold
fn clone(&self) -> CancelLegalHold
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more