@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 AWS 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) |
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; useful for testing and debugging.
|
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 to 10.
attempts - The number of times to attempt to retry, if the job fails. Valid values are 1 to 10.public Integer getAttempts()
The number of times to attempt to retry, if the job fails. Valid values are 1 to 10.
public BatchRetryStrategy withAttempts(Integer attempts)
The number of times to attempt to retry, if the job fails. Valid values are 1 to 10.
attempts - The number of times to attempt to retry, if the job fails. Valid values are 1 to 10.public String toString()
toString in class ObjectObject.toString()public BatchRetryStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.