@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)
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; useful for testing and debugging.
|
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 attempts
is greater than one, the job is retried if it fails until it has moved to
RUNNABLE
that many times.
attempts
- The number of times to move a job to the RUNNABLE
status. You may specify between 1 and 10
attempts. If attempts
is greater than one, the job is retried if it fails until it has moved
to RUNNABLE
that many times.public Integer getAttempts()
The number of times to move a job to the RUNNABLE
status. You may specify between 1 and 10 attempts.
If attempts
is greater than one, the job is retried if it fails until it has moved to
RUNNABLE
that many times.
RUNNABLE
status. You may specify between 1 and 10
attempts. If attempts
is greater than one, the job is retried if it fails until it has moved
to RUNNABLE
that many times.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 attempts
is greater than one, the job is retried if it fails until it has moved to
RUNNABLE
that many times.
attempts
- The number of times to move a job to the RUNNABLE
status. You may specify between 1 and 10
attempts. If attempts
is greater than one, the job is retried if it fails until it has moved
to RUNNABLE
that many times.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.