Struct aws_sdk_backup::types::builders::LegalHoldBuilder
source · #[non_exhaustive]pub struct LegalHoldBuilder { /* private fields */ }
Expand description
A builder for LegalHold
.
Implementations§
source§impl LegalHoldBuilder
impl LegalHoldBuilder
sourcepub fn status(self, input: LegalHoldStatus) -> Self
pub fn status(self, input: LegalHoldStatus) -> Self
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
, CANCELED
, and CANCELING
.
sourcepub fn set_status(self, input: Option<LegalHoldStatus>) -> Self
pub fn set_status(self, input: Option<LegalHoldStatus>) -> Self
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
, CANCELED
, and CANCELING
.
sourcepub fn get_status(&self) -> &Option<LegalHoldStatus>
pub fn get_status(&self) -> &Option<LegalHoldStatus>
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
, CANCELED
, and CANCELING
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
This is the description of a legal hold.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
This is the description of a legal hold.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
This is the description of a legal hold.
sourcepub fn legal_hold_id(self, input: impl Into<String>) -> Self
pub fn legal_hold_id(self, input: impl Into<String>) -> Self
ID of specific legal hold on one or more recovery points.
sourcepub fn set_legal_hold_id(self, input: Option<String>) -> Self
pub fn set_legal_hold_id(self, input: Option<String>) -> Self
ID of specific legal hold on one or more recovery points.
sourcepub fn get_legal_hold_id(&self) -> &Option<String>
pub fn get_legal_hold_id(&self) -> &Option<String>
ID of specific legal hold on one or more recovery points.
sourcepub fn legal_hold_arn(self, input: impl Into<String>) -> Self
pub fn legal_hold_arn(self, input: impl Into<String>) -> Self
This is an Amazon Resource Number (ARN) that uniquely identifies the legal hold; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
sourcepub fn set_legal_hold_arn(self, input: Option<String>) -> Self
pub fn set_legal_hold_arn(self, input: Option<String>) -> Self
This is an Amazon Resource Number (ARN) that uniquely identifies the legal hold; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
sourcepub fn get_legal_hold_arn(&self) -> &Option<String>
pub fn get_legal_hold_arn(&self) -> &Option<String>
This is an Amazon Resource Number (ARN) that uniquely identifies the legal hold; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
This is the 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
This is the 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>
This is the time in number format when legal hold was created.
sourcepub fn cancellation_date(self, input: DateTime) -> Self
pub fn cancellation_date(self, input: DateTime) -> Self
This is the time in number format when legal hold was cancelled.
sourcepub fn set_cancellation_date(self, input: Option<DateTime>) -> Self
pub fn set_cancellation_date(self, input: Option<DateTime>) -> Self
This is the time in number format when legal hold was cancelled.
sourcepub fn get_cancellation_date(&self) -> &Option<DateTime>
pub fn get_cancellation_date(&self) -> &Option<DateTime>
This is the time in number format when legal hold was cancelled.
Trait Implementations§
source§impl Clone for LegalHoldBuilder
impl Clone for LegalHoldBuilder
source§fn clone(&self) -> LegalHoldBuilder
fn clone(&self) -> LegalHoldBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LegalHoldBuilder
impl Debug for LegalHoldBuilder
source§impl Default for LegalHoldBuilder
impl Default for LegalHoldBuilder
source§fn default() -> LegalHoldBuilder
fn default() -> LegalHoldBuilder
source§impl PartialEq for LegalHoldBuilder
impl PartialEq for LegalHoldBuilder
source§fn eq(&self, other: &LegalHoldBuilder) -> bool
fn eq(&self, other: &LegalHoldBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.