@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetryStrategy extends Object implements Serializable, Cloneable, StructuredPojo
The retry strategy 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 conditions under which the job should be 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 conditions under which the job should be 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 conditions under which the job should be retried or failed.
|
RetryStrategy |
withEvaluateOnExit(EvaluateOnExit... evaluateOnExit)
Array of up to 5 objects that specify conditions under which the job should be 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 conditions under which the job should be retried or failed. If this
parameter is specified, then the attempts
parameter must also be specified.
attempts
parameter must also be specified.public void setEvaluateOnExit(Collection<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.
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.public RetryStrategy withEvaluateOnExit(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.
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 conditions under which the job should be retried or failed. If this
parameter is specified, then the attempts
parameter must also be specified.public RetryStrategy withEvaluateOnExit(Collection<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.
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.public String toString()
toString
in class Object
Object.toString()
public RetryStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.