@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchRetryStrategy extends Object implements Serializable, Cloneable, StructuredPojo
The retry strategy to use for failed jobs, if the target is an Batch job. If you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
| Constructor and Description |
|---|
BatchRetryStrategy() |
| Modifier and Type | Method and Description |
|---|---|
BatchRetryStrategy |
clone() |
boolean |
equals(Object obj) |
Integer |
getAttempts()
The number of times to attempt to retry, if the job fails.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttempts(Integer attempts)
The number of times to attempt to retry, if the job fails.
|
String |
toString()
Returns a string representation of this object.
|
BatchRetryStrategy |
withAttempts(Integer attempts)
The number of times to attempt to retry, if the job fails.
|
public void setAttempts(Integer attempts)
The number of times to attempt to retry, if the job fails. Valid values are 1–10.
attempts - The number of times to attempt to retry, if the job fails. Valid values are 1–10.public Integer getAttempts()
The number of times to attempt to retry, if the job fails. Valid values are 1–10.
public BatchRetryStrategy withAttempts(Integer attempts)
The number of times to attempt to retry, if the job fails. Valid values are 1–10.
attempts - The number of times to attempt to retry, if the job fails. Valid values are 1–10.public String toString()
toString in class ObjectObject.toString()public BatchRetryStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.