Struct aws_sdk_backup::operation::create_restore_testing_plan::builders::CreateRestoreTestingPlanFluentBuilder
source · pub struct CreateRestoreTestingPlanFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRestoreTestingPlan
.
This is the first of two steps to create a restore testing plan; once this request is successful, finish the procedure with request CreateRestoreTestingSelection.
You must include the parameter RestoreTestingPlan. You may optionally include CreatorRequestId and Tags.
Implementations§
source§impl CreateRestoreTestingPlanFluentBuilder
impl CreateRestoreTestingPlanFluentBuilder
sourcepub fn as_input(&self) -> &CreateRestoreTestingPlanInputBuilder
pub fn as_input(&self) -> &CreateRestoreTestingPlanInputBuilder
Access the CreateRestoreTestingPlan as a reference.
sourcepub async fn send(
self
) -> Result<CreateRestoreTestingPlanOutput, SdkError<CreateRestoreTestingPlanError, HttpResponse>>
pub async fn send( self ) -> Result<CreateRestoreTestingPlanOutput, SdkError<CreateRestoreTestingPlanError, 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<CreateRestoreTestingPlanOutput, CreateRestoreTestingPlanError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateRestoreTestingPlanOutput, CreateRestoreTestingPlanError, 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 a unique string that identifies the request and allows failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. 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 a unique string that identifies the request and allows failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. 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 a unique string that identifies the request and allows failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn restore_testing_plan(self, input: RestoreTestingPlanForCreate) -> Self
pub fn restore_testing_plan(self, input: RestoreTestingPlanForCreate) -> Self
A restore testing plan must contain a unique RestoreTestingPlanName
string you create and must contain a ScheduleExpression
cron. You may optionally include a StartWindowHours
integer and a CreatorRequestId
string.
The RestoreTestingPlanName
is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
sourcepub fn set_restore_testing_plan(
self,
input: Option<RestoreTestingPlanForCreate>
) -> Self
pub fn set_restore_testing_plan( self, input: Option<RestoreTestingPlanForCreate> ) -> Self
A restore testing plan must contain a unique RestoreTestingPlanName
string you create and must contain a ScheduleExpression
cron. You may optionally include a StartWindowHours
integer and a CreatorRequestId
string.
The RestoreTestingPlanName
is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
sourcepub fn get_restore_testing_plan(&self) -> &Option<RestoreTestingPlanForCreate>
pub fn get_restore_testing_plan(&self) -> &Option<RestoreTestingPlanForCreate>
A restore testing plan must contain a unique RestoreTestingPlanName
string you create and must contain a ScheduleExpression
cron. You may optionally include a StartWindowHours
integer and a CreatorRequestId
string.
The RestoreTestingPlanName
is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
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: + - = . _ : /.
Trait Implementations§
source§impl Clone for CreateRestoreTestingPlanFluentBuilder
impl Clone for CreateRestoreTestingPlanFluentBuilder
source§fn clone(&self) -> CreateRestoreTestingPlanFluentBuilder
fn clone(&self) -> CreateRestoreTestingPlanFluentBuilder
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 CreateRestoreTestingPlanFluentBuilder
impl !RefUnwindSafe for CreateRestoreTestingPlanFluentBuilder
impl Send for CreateRestoreTestingPlanFluentBuilder
impl Sync for CreateRestoreTestingPlanFluentBuilder
impl Unpin for CreateRestoreTestingPlanFluentBuilder
impl !UnwindSafe for CreateRestoreTestingPlanFluentBuilder
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