@Generated(value="software.amazon.awssdk:codegen") public final class RetryStrategy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RetryStrategy.Builder,RetryStrategy>
The retry strategy associated with a job. For more information, see Automated job retries in the AWS Batch User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetryStrategy.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
attempts()
The number of times to move a job to the
RUNNABLE status. |
static RetryStrategy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<EvaluateOnExit> |
evaluateOnExit()
Array of up to 5 objects that specify conditions under which the job should be retried or failed.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEvaluateOnExit()
Returns true if the EvaluateOnExit property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RetryStrategy.Builder> |
serializableBuilderClass() |
RetryStrategy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer attempts()
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.
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.public final boolean hasEvaluateOnExit()
public final List<EvaluateOnExit> evaluateOnExit()
Array of up to 5 objects that specify conditions under which the job should be retried or failed. If this
parameter is specified, then the attempts parameter must also be specified.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasEvaluateOnExit() to see if a value was sent in this field.
attempts parameter must also be specified.public RetryStrategy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RetryStrategy.Builder,RetryStrategy>public static RetryStrategy.Builder builder()
public static Class<? extends RetryStrategy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.