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<RetryStrategyBuilder> for RetryStrategyBuilder
impl PartialEq<RetryStrategyBuilder> 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 ==
.