Struct aws_sdk_backup::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionInputBuilder
source · #[non_exhaustive]pub struct CreateRestoreTestingSelectionInputBuilder { /* private fields */ }
Expand description
A builder for CreateRestoreTestingSelectionInput
.
Implementations§
source§impl CreateRestoreTestingSelectionInputBuilder
impl CreateRestoreTestingSelectionInputBuilder
sourcepub fn creator_request_id(self, input: impl Into<String>) -> Self
pub fn creator_request_id(self, input: impl Into<String>) -> Self
This is an optional unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn set_creator_request_id(self, input: Option<String>) -> Self
pub fn set_creator_request_id(self, input: Option<String>) -> Self
This is an optional unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn get_creator_request_id(&self) -> &Option<String>
pub fn get_creator_request_id(&self) -> &Option<String>
This is an optional unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn restore_testing_plan_name(self, input: impl Into<String>) -> Self
pub fn restore_testing_plan_name(self, input: impl Into<String>) -> Self
Input the restore testing plan name that was returned from the related CreateRestoreTestingPlan request.
This field is required.sourcepub fn set_restore_testing_plan_name(self, input: Option<String>) -> Self
pub fn set_restore_testing_plan_name(self, input: Option<String>) -> Self
Input the restore testing plan name that was returned from the related CreateRestoreTestingPlan request.
sourcepub fn get_restore_testing_plan_name(&self) -> &Option<String>
pub fn get_restore_testing_plan_name(&self) -> &Option<String>
Input the restore testing plan name that was returned from the related CreateRestoreTestingPlan request.
sourcepub fn restore_testing_selection(
self,
input: RestoreTestingSelectionForCreate,
) -> Self
pub fn restore_testing_selection( self, input: RestoreTestingSelectionForCreate, ) -> Self
This consists of RestoreTestingSelectionName
, ProtectedResourceType
, and one of the following:
-
ProtectedResourceArns
-
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value ("*") for ProtectedResourceArns
along with ProtectedResourceConditions
. Alternatively, you can include up to 30 specific protected resource ARNs in ProtectedResourceArns
.
sourcepub fn set_restore_testing_selection(
self,
input: Option<RestoreTestingSelectionForCreate>,
) -> Self
pub fn set_restore_testing_selection( self, input: Option<RestoreTestingSelectionForCreate>, ) -> Self
This consists of RestoreTestingSelectionName
, ProtectedResourceType
, and one of the following:
-
ProtectedResourceArns
-
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value ("*") for ProtectedResourceArns
along with ProtectedResourceConditions
. Alternatively, you can include up to 30 specific protected resource ARNs in ProtectedResourceArns
.
sourcepub fn get_restore_testing_selection(
&self,
) -> &Option<RestoreTestingSelectionForCreate>
pub fn get_restore_testing_selection( &self, ) -> &Option<RestoreTestingSelectionForCreate>
This consists of RestoreTestingSelectionName
, ProtectedResourceType
, and one of the following:
-
ProtectedResourceArns
-
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value ("*") for ProtectedResourceArns
along with ProtectedResourceConditions
. Alternatively, you can include up to 30 specific protected resource ARNs in ProtectedResourceArns
.
sourcepub fn build(self) -> Result<CreateRestoreTestingSelectionInput, BuildError>
pub fn build(self) -> Result<CreateRestoreTestingSelectionInput, BuildError>
Consumes the builder and constructs a CreateRestoreTestingSelectionInput
.
source§impl CreateRestoreTestingSelectionInputBuilder
impl CreateRestoreTestingSelectionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateRestoreTestingSelectionOutput, SdkError<CreateRestoreTestingSelectionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateRestoreTestingSelectionOutput, SdkError<CreateRestoreTestingSelectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateRestoreTestingSelectionInputBuilder
impl Clone for CreateRestoreTestingSelectionInputBuilder
source§fn clone(&self) -> CreateRestoreTestingSelectionInputBuilder
fn clone(&self) -> CreateRestoreTestingSelectionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateRestoreTestingSelectionInputBuilder
impl Default for CreateRestoreTestingSelectionInputBuilder
source§fn default() -> CreateRestoreTestingSelectionInputBuilder
fn default() -> CreateRestoreTestingSelectionInputBuilder
source§impl PartialEq for CreateRestoreTestingSelectionInputBuilder
impl PartialEq for CreateRestoreTestingSelectionInputBuilder
source§fn eq(&self, other: &CreateRestoreTestingSelectionInputBuilder) -> bool
fn eq(&self, other: &CreateRestoreTestingSelectionInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateRestoreTestingSelectionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateRestoreTestingSelectionInputBuilder
impl RefUnwindSafe for CreateRestoreTestingSelectionInputBuilder
impl Send for CreateRestoreTestingSelectionInputBuilder
impl Sync for CreateRestoreTestingSelectionInputBuilder
impl Unpin for CreateRestoreTestingSelectionInputBuilder
impl UnwindSafe for CreateRestoreTestingSelectionInputBuilder
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