@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetryStrategy extends Object implements Serializable, Cloneable, StructuredPojo
The retry strategy that's associated with a job. For more information, see Automated job retries in the Batch User Guide.
| Constructor and Description |
|---|
RetryStrategy() |
| Modifier and Type | Method and Description |
|---|---|
RetryStrategy |
clone() |
boolean |
equals(Object obj) |
Integer |
getAttempts()
The number of times to move a job to the
RUNNABLE status. |
List<EvaluateOnExit> |
getEvaluateOnExit()
Array of up to 5 objects that specify the conditions where jobs are retried or failed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttempts(Integer attempts)
The number of times to move a job to the
RUNNABLE status. |
void |
setEvaluateOnExit(Collection<EvaluateOnExit> evaluateOnExit)
Array of up to 5 objects that specify the conditions where jobs are retried or failed.
|
String |
toString()
Returns a string representation of this object.
|
RetryStrategy |
withAttempts(Integer attempts)
The number of times to move a job to the
RUNNABLE status. |
RetryStrategy |
withEvaluateOnExit(Collection<EvaluateOnExit> evaluateOnExit)
Array of up to 5 objects that specify the conditions where jobs are retried or failed.
|
RetryStrategy |
withEvaluateOnExit(EvaluateOnExit... evaluateOnExit)
Array of up to 5 objects that specify the conditions where jobs are retried or failed.
|
public void setAttempts(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.
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.public Integer getAttempts()
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 RetryStrategy withAttempts(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.
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.public List<EvaluateOnExit> getEvaluateOnExit()
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.
attempts parameter must also be specified. If none of the listed
conditions match, then the job is retried.public void setEvaluateOnExit(Collection<EvaluateOnExit> 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.
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.public RetryStrategy withEvaluateOnExit(EvaluateOnExit... 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.
NOTE: This method appends the values to the existing list (if any). Use
setEvaluateOnExit(java.util.Collection) or withEvaluateOnExit(java.util.Collection) if you want
to override the existing values.
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.public RetryStrategy withEvaluateOnExit(Collection<EvaluateOnExit> 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.
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.public String toString()
toString in class ObjectObject.toString()public RetryStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.