#[non_exhaustive]pub struct CreateLegalHoldOutputBuilder { /* private fields */ }
Expand description
A builder for CreateLegalHoldOutput
.
Implementations§
source§impl CreateLegalHoldOutputBuilder
impl CreateLegalHoldOutputBuilder
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 returned after creating 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 returned after creating the legal hold.
sourcepub fn get_title(&self) -> &Option<String>
pub fn get_title(&self) -> &Option<String>
This is the string title of the legal hold returned after creating the legal hold.
sourcepub fn status(self, input: LegalHoldStatus) -> Self
pub fn status(self, input: LegalHoldStatus) -> Self
This displays the status of the legal hold returned after creating the legal hold. Statuses can be ACTIVE
, PENDING
, CANCELED
, CANCELING
, or FAILED
.
sourcepub fn set_status(self, input: Option<LegalHoldStatus>) -> Self
pub fn set_status(self, input: Option<LegalHoldStatus>) -> Self
This displays the status of the legal hold returned after creating the legal hold. Statuses can be ACTIVE
, PENDING
, CANCELED
, CANCELING
, or FAILED
.
sourcepub fn get_status(&self) -> &Option<LegalHoldStatus>
pub fn get_status(&self) -> &Option<LegalHoldStatus>
This displays the status of the legal hold returned after creating the legal hold. Statuses can be ACTIVE
, PENDING
, CANCELED
, CANCELING
, or FAILED
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
This is the returned 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 returned string description of the legal hold.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
This is the returned string description of the legal hold.
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 returned for 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 returned for the specified legal hold on a recovery point.
sourcepub fn get_legal_hold_id(&self) -> &Option<String>
pub fn get_legal_hold_id(&self) -> &Option<String>
Legal hold ID returned for the specified legal hold on a recovery point.
sourcepub fn legal_hold_arn(self, input: impl Into<String>) -> Self
pub fn legal_hold_arn(self, input: impl Into<String>) -> Self
This is the ARN (Amazon Resource Number) of the created legal hold.
sourcepub fn set_legal_hold_arn(self, input: Option<String>) -> Self
pub fn set_legal_hold_arn(self, input: Option<String>) -> Self
This is the ARN (Amazon Resource Number) of the created legal hold.
sourcepub fn get_legal_hold_arn(&self) -> &Option<String>
pub fn get_legal_hold_arn(&self) -> &Option<String>
This is the ARN (Amazon Resource Number) of the created legal hold.
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
Time in number format when legal hold was created.
sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
Time in number format when legal hold was created.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
Time in number format when legal hold was created.
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.
sourcepub fn build(self) -> CreateLegalHoldOutput
pub fn build(self) -> CreateLegalHoldOutput
Consumes the builder and constructs a CreateLegalHoldOutput
.
Trait Implementations§
source§impl Clone for CreateLegalHoldOutputBuilder
impl Clone for CreateLegalHoldOutputBuilder
source§fn clone(&self) -> CreateLegalHoldOutputBuilder
fn clone(&self) -> CreateLegalHoldOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateLegalHoldOutputBuilder
impl Debug for CreateLegalHoldOutputBuilder
source§impl Default for CreateLegalHoldOutputBuilder
impl Default for CreateLegalHoldOutputBuilder
source§fn default() -> CreateLegalHoldOutputBuilder
fn default() -> CreateLegalHoldOutputBuilder
source§impl PartialEq for CreateLegalHoldOutputBuilder
impl PartialEq for CreateLegalHoldOutputBuilder
source§fn eq(&self, other: &CreateLegalHoldOutputBuilder) -> bool
fn eq(&self, other: &CreateLegalHoldOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.