pub struct CreateLegalHoldFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateLegalHold
.
This action creates a legal hold on a recovery point (backup). A legal hold is a restraint on altering or deleting a backup until an authorized user cancels the legal hold. Any actions to delete or disassociate a recovery point will fail with an error if one or more active legal holds are on the recovery point.
Implementations§
source§impl CreateLegalHoldFluentBuilder
impl CreateLegalHoldFluentBuilder
sourcepub fn as_input(&self) -> &CreateLegalHoldInputBuilder
pub fn as_input(&self) -> &CreateLegalHoldInputBuilder
Access the CreateLegalHold as a reference.
sourcepub async fn send(
self
) -> Result<CreateLegalHoldOutput, SdkError<CreateLegalHoldError, HttpResponse>>
pub async fn send( self ) -> Result<CreateLegalHoldOutput, SdkError<CreateLegalHoldError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreateLegalHoldOutput, CreateLegalHoldError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateLegalHoldOutput, CreateLegalHoldError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
This is the string title of the legal hold.
sourcepub fn set_title(self, input: Option<String>) -> Self
pub fn set_title(self, input: Option<String>) -> Self
This is the string title of the legal hold.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
This is the string description of the legal hold.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
This is the string description of the legal hold.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
This is the string description of the legal hold.
sourcepub fn idempotency_token(self, input: impl Into<String>) -> Self
pub fn idempotency_token(self, input: impl Into<String>) -> Self
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
sourcepub fn set_idempotency_token(self, input: Option<String>) -> Self
pub fn set_idempotency_token(self, input: Option<String>) -> Self
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
sourcepub fn get_idempotency_token(&self) -> &Option<String>
pub fn get_idempotency_token(&self) -> &Option<String>
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
sourcepub fn recovery_point_selection(self, input: RecoveryPointSelection) -> Self
pub fn recovery_point_selection(self, input: RecoveryPointSelection) -> Self
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
sourcepub fn set_recovery_point_selection(
self,
input: Option<RecoveryPointSelection>
) -> Self
pub fn set_recovery_point_selection( self, input: Option<RecoveryPointSelection> ) -> Self
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
sourcepub fn get_recovery_point_selection(&self) -> &Option<RecoveryPointSelection>
pub fn get_recovery_point_selection(&self) -> &Option<RecoveryPointSelection>
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Trait Implementations§
source§impl Clone for CreateLegalHoldFluentBuilder
impl Clone for CreateLegalHoldFluentBuilder
source§fn clone(&self) -> CreateLegalHoldFluentBuilder
fn clone(&self) -> CreateLegalHoldFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more