@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.
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. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller 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.
|
RetryStrategy |
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. You may 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 may 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 may 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 may 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 may 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 may 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 String toString()
toString
in class Object
Object.toString()
public RetryStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.