#[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 ==
.impl StructuralPartialEq for CreateLegalHoldOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateLegalHoldOutputBuilder
impl RefUnwindSafe for CreateLegalHoldOutputBuilder
impl Send for CreateLegalHoldOutputBuilder
impl Sync for CreateLegalHoldOutputBuilder
impl Unpin for CreateLegalHoldOutputBuilder
impl UnwindSafe for CreateLegalHoldOutputBuilder
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