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
impl StructuralPartialEq for LegalHoldBuilder
Auto Trait Implementations§
impl Freeze for LegalHoldBuilder
impl RefUnwindSafe for LegalHoldBuilder
impl Send for LegalHoldBuilder
impl Sync for LegalHoldBuilder
impl Unpin for LegalHoldBuilder
impl UnwindSafe for LegalHoldBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more