aws_sdk_backup/client/
cancel_legal_hold.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CancelLegalHold`](crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`legal_hold_id(impl Into<String>)`](crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder::legal_hold_id) / [`set_legal_hold_id(Option<String>)`](crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder::set_legal_hold_id):<br>required: **true**<br><p>The ID of the legal hold.</p><br>
7    ///   - [`cancel_description(impl Into<String>)`](crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder::cancel_description) / [`set_cancel_description(Option<String>)`](crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder::set_cancel_description):<br>required: **true**<br><p>A string the describes the reason for removing the legal hold.</p><br>
8    ///   - [`retain_record_in_days(i64)`](crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder::retain_record_in_days) / [`set_retain_record_in_days(Option<i64>)`](crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder::set_retain_record_in_days):<br>required: **false**<br><p>The integer amount, in days, after which to remove legal hold.</p><br>
9    /// - On success, responds with [`CancelLegalHoldOutput`](crate::operation::cancel_legal_hold::CancelLegalHoldOutput)
10    /// - On failure, responds with [`SdkError<CancelLegalHoldError>`](crate::operation::cancel_legal_hold::CancelLegalHoldError)
11    pub fn cancel_legal_hold(&self) -> crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder {
12        crate::operation::cancel_legal_hold::builders::CancelLegalHoldFluentBuilder::new(self.handle.clone())
13    }
14}