@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetryPolicy extends Object implements Serializable, Cloneable, StructuredPojo
The retry policy to use for a job run.
| Constructor and Description |
|---|
RetryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxAttempts()
Maximum number of attempts for the job run.
|
Integer |
getMaxFailedAttemptsPerHour()
Maximum number of failed attempts per hour.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMaxAttempts(Integer maxAttempts)
Maximum number of attempts for the job run.
|
void |
setMaxFailedAttemptsPerHour(Integer maxFailedAttemptsPerHour)
Maximum number of failed attempts per hour.
|
String |
toString()
Returns a string representation of this object.
|
RetryPolicy |
withMaxAttempts(Integer maxAttempts)
Maximum number of attempts for the job run.
|
RetryPolicy |
withMaxFailedAttemptsPerHour(Integer maxFailedAttemptsPerHour)
Maximum number of failed attempts per hour.
|
public void setMaxAttempts(Integer maxAttempts)
Maximum number of attempts for the job run. This parameter is only applicable for BATCH mode.
maxAttempts - Maximum number of attempts for the job run. This parameter is only applicable for BATCH mode.public Integer getMaxAttempts()
Maximum number of attempts for the job run. This parameter is only applicable for BATCH mode.
BATCH
mode.public RetryPolicy withMaxAttempts(Integer maxAttempts)
Maximum number of attempts for the job run. This parameter is only applicable for BATCH mode.
maxAttempts - Maximum number of attempts for the job run. This parameter is only applicable for BATCH mode.public void setMaxFailedAttemptsPerHour(Integer maxFailedAttemptsPerHour)
Maximum number of failed attempts per hour. This [arameter is only applicable for STREAMING mode.
maxFailedAttemptsPerHour - Maximum number of failed attempts per hour. This [arameter is only applicable for STREAMING
mode.public Integer getMaxFailedAttemptsPerHour()
Maximum number of failed attempts per hour. This [arameter is only applicable for STREAMING mode.
STREAMING
mode.public RetryPolicy withMaxFailedAttemptsPerHour(Integer maxFailedAttemptsPerHour)
Maximum number of failed attempts per hour. This [arameter is only applicable for STREAMING mode.
maxFailedAttemptsPerHour - Maximum number of failed attempts per hour. This [arameter is only applicable for STREAMING
mode.public String toString()
toString in class ObjectObject.toString()public RetryPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.