#[non_exhaustive]pub struct CreateLegalHoldInputBuilder { /* private fields */ }
Expand description
A builder for CreateLegalHoldInput
.
Implementations§
source§impl CreateLegalHoldInputBuilder
impl CreateLegalHoldInputBuilder
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of the legal hold.
This field is required.sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the legal hold.
This field is required.sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the legal hold.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the legal hold.
sourcepub fn idempotency_token(self, input: impl Into<String>) -> Self
pub fn idempotency_token(self, input: impl Into<String>) -> Self
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
sourcepub fn set_idempotency_token(self, input: Option<String>) -> Self
pub fn set_idempotency_token(self, input: Option<String>) -> Self
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
sourcepub fn get_idempotency_token(&self) -> &Option<String>
pub fn get_idempotency_token(&self) -> &Option<String>
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
sourcepub fn recovery_point_selection(self, input: RecoveryPointSelection) -> Self
pub fn recovery_point_selection(self, input: RecoveryPointSelection) -> Self
The 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
The 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>
The criteria to assign a set of resources, such as resource types or backup vaults.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
sourcepub fn build(self) -> Result<CreateLegalHoldInput, BuildError>
pub fn build(self) -> Result<CreateLegalHoldInput, BuildError>
Consumes the builder and constructs a CreateLegalHoldInput
.
source§impl CreateLegalHoldInputBuilder
impl CreateLegalHoldInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateLegalHoldOutput, SdkError<CreateLegalHoldError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateLegalHoldOutput, SdkError<CreateLegalHoldError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateLegalHoldInputBuilder
impl Clone for CreateLegalHoldInputBuilder
source§fn clone(&self) -> CreateLegalHoldInputBuilder
fn clone(&self) -> CreateLegalHoldInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateLegalHoldInputBuilder
impl Debug for CreateLegalHoldInputBuilder
source§impl Default for CreateLegalHoldInputBuilder
impl Default for CreateLegalHoldInputBuilder
source§fn default() -> CreateLegalHoldInputBuilder
fn default() -> CreateLegalHoldInputBuilder
impl StructuralPartialEq for CreateLegalHoldInputBuilder
Auto Trait Implementations§
impl Freeze for CreateLegalHoldInputBuilder
impl RefUnwindSafe for CreateLegalHoldInputBuilder
impl Send for CreateLegalHoldInputBuilder
impl Sync for CreateLegalHoldInputBuilder
impl Unpin for CreateLegalHoldInputBuilder
impl UnwindSafe for CreateLegalHoldInputBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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