Struct aws_sdk_backup::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder
source · pub struct CreateRestoreTestingSelectionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRestoreTestingSelection
.
This request can be sent after CreateRestoreTestingPlan request returns successfully. This is the second part of creating a resource testing plan, and it must be completed sequentially.
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
.
Cannot select by both protected resource types AND specific ARNs. Request will fail if both are included.
Implementations§
source§impl CreateRestoreTestingSelectionFluentBuilder
impl CreateRestoreTestingSelectionFluentBuilder
sourcepub fn as_input(&self) -> &CreateRestoreTestingSelectionInputBuilder
pub fn as_input(&self) -> &CreateRestoreTestingSelectionInputBuilder
Access the CreateRestoreTestingSelection as a reference.
sourcepub async fn send(
self
) -> Result<CreateRestoreTestingSelectionOutput, SdkError<CreateRestoreTestingSelectionError, HttpResponse>>
pub async fn send( self ) -> Result<CreateRestoreTestingSelectionOutput, SdkError<CreateRestoreTestingSelectionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateRestoreTestingSelectionOutput, CreateRestoreTestingSelectionError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateRestoreTestingSelectionOutput, CreateRestoreTestingSelectionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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
.
Trait Implementations§
source§impl Clone for CreateRestoreTestingSelectionFluentBuilder
impl Clone for CreateRestoreTestingSelectionFluentBuilder
source§fn clone(&self) -> CreateRestoreTestingSelectionFluentBuilder
fn clone(&self) -> CreateRestoreTestingSelectionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateRestoreTestingSelectionFluentBuilder
impl !RefUnwindSafe for CreateRestoreTestingSelectionFluentBuilder
impl Send for CreateRestoreTestingSelectionFluentBuilder
impl Sync for CreateRestoreTestingSelectionFluentBuilder
impl Unpin for CreateRestoreTestingSelectionFluentBuilder
impl !UnwindSafe for CreateRestoreTestingSelectionFluentBuilder
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> 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