Struct aws_sdk_batch::types::builders::RetryStrategyBuilder
source · #[non_exhaustive]pub struct RetryStrategyBuilder { /* private fields */ }Expand description
A builder for RetryStrategy.
Implementations§
source§impl RetryStrategyBuilder
impl RetryStrategyBuilder
sourcepub fn attempts(self, input: i32) -> Self
pub fn attempts(self, input: i32) -> Self
The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.
sourcepub fn set_attempts(self, input: Option<i32>) -> Self
pub fn set_attempts(self, input: Option<i32>) -> Self
The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.
sourcepub fn get_attempts(&self) -> &Option<i32>
pub fn get_attempts(&self) -> &Option<i32>
The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.
sourcepub fn evaluate_on_exit(self, input: EvaluateOnExit) -> Self
pub fn evaluate_on_exit(self, input: EvaluateOnExit) -> Self
Appends an item to evaluate_on_exit.
To override the contents of this collection use set_evaluate_on_exit.
Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.
sourcepub fn set_evaluate_on_exit(self, input: Option<Vec<EvaluateOnExit>>) -> Self
pub fn set_evaluate_on_exit(self, input: Option<Vec<EvaluateOnExit>>) -> Self
Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.
sourcepub fn get_evaluate_on_exit(&self) -> &Option<Vec<EvaluateOnExit>>
pub fn get_evaluate_on_exit(&self) -> &Option<Vec<EvaluateOnExit>>
Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.
sourcepub fn build(self) -> RetryStrategy
pub fn build(self) -> RetryStrategy
Consumes the builder and constructs a RetryStrategy.
Trait Implementations§
source§impl Clone for RetryStrategyBuilder
impl Clone for RetryStrategyBuilder
source§fn clone(&self) -> RetryStrategyBuilder
fn clone(&self) -> RetryStrategyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RetryStrategyBuilder
impl Debug for RetryStrategyBuilder
source§impl Default for RetryStrategyBuilder
impl Default for RetryStrategyBuilder
source§fn default() -> RetryStrategyBuilder
fn default() -> RetryStrategyBuilder
source§impl PartialEq for RetryStrategyBuilder
impl PartialEq for RetryStrategyBuilder
source§fn eq(&self, other: &RetryStrategyBuilder) -> bool
fn eq(&self, other: &RetryStrategyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RetryStrategyBuilder
Auto Trait Implementations§
impl Freeze for RetryStrategyBuilder
impl RefUnwindSafe for RetryStrategyBuilder
impl Send for RetryStrategyBuilder
impl Sync for RetryStrategyBuilder
impl Unpin for RetryStrategyBuilder
impl UnwindSafe for RetryStrategyBuilder
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