Struct aws_sdk_batch::model::retry_strategy::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for RetryStrategy
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> RetryStrategy
pub fn build(self) -> RetryStrategy
Consumes the builder and constructs a RetryStrategy
.