@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchRetryStrategy 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 |
---|
BatchRetryStrategy() |
Modifier and Type | Method and Description |
---|---|
BatchRetryStrategy |
clone() |
boolean |
equals(Object obj) |
Integer |
getAttempts()
The number of times to move a job to the
RUNNABLE status. |
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. |
String |
toString()
Returns a string representation of this object.
|
BatchRetryStrategy |
withAttempts(Integer attempts)
The number of times to move a job to the
RUNNABLE status. |
public void setAttempts(Integer attempts)
The number of times to move a job to the RUNNABLE
status. 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. 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. 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. If the value of
attempts
is greater than one, the job is retried on failure the same number of attempts as
the value.public BatchRetryStrategy withAttempts(Integer attempts)
The number of times to move a job to the RUNNABLE
status. 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. If the value of
attempts
is greater than one, the job is retried on failure the same number of attempts as
the value.public String toString()
toString
in class Object
Object.toString()
public BatchRetryStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.