@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetryPolicy extends Object implements Serializable, Cloneable, StructuredPojo
A RetryPolicy
object that includes information about the retry policy settings, including the maximum
age of an event, and the maximum number of times EventBridge Scheduler will try to deliver the event to a target.
Constructor and Description |
---|
RetryPolicy() |
Modifier and Type | Method and Description |
---|---|
RetryPolicy |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaximumEventAgeInSeconds()
The maximum amount of time, in seconds, to continue to make retry attempts.
|
Integer |
getMaximumRetryAttempts()
The maximum number of retry attempts to make before the request fails.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaximumEventAgeInSeconds(Integer maximumEventAgeInSeconds)
The maximum amount of time, in seconds, to continue to make retry attempts.
|
void |
setMaximumRetryAttempts(Integer maximumRetryAttempts)
The maximum number of retry attempts to make before the request fails.
|
String |
toString()
Returns a string representation of this object.
|
RetryPolicy |
withMaximumEventAgeInSeconds(Integer maximumEventAgeInSeconds)
The maximum amount of time, in seconds, to continue to make retry attempts.
|
RetryPolicy |
withMaximumRetryAttempts(Integer maximumRetryAttempts)
The maximum number of retry attempts to make before the request fails.
|
public void setMaximumEventAgeInSeconds(Integer maximumEventAgeInSeconds)
The maximum amount of time, in seconds, to continue to make retry attempts.
maximumEventAgeInSeconds
- The maximum amount of time, in seconds, to continue to make retry attempts.public Integer getMaximumEventAgeInSeconds()
The maximum amount of time, in seconds, to continue to make retry attempts.
public RetryPolicy withMaximumEventAgeInSeconds(Integer maximumEventAgeInSeconds)
The maximum amount of time, in seconds, to continue to make retry attempts.
maximumEventAgeInSeconds
- The maximum amount of time, in seconds, to continue to make retry attempts.public void setMaximumRetryAttempts(Integer maximumRetryAttempts)
The maximum number of retry attempts to make before the request fails. Retry attempts with exponential backoff
continue until either the maximum number of attempts is made or until the duration of the
MaximumEventAgeInSeconds
is reached.
maximumRetryAttempts
- The maximum number of retry attempts to make before the request fails. Retry attempts with exponential
backoff continue until either the maximum number of attempts is made or until the duration of the
MaximumEventAgeInSeconds
is reached.public Integer getMaximumRetryAttempts()
The maximum number of retry attempts to make before the request fails. Retry attempts with exponential backoff
continue until either the maximum number of attempts is made or until the duration of the
MaximumEventAgeInSeconds
is reached.
MaximumEventAgeInSeconds
is reached.public RetryPolicy withMaximumRetryAttempts(Integer maximumRetryAttempts)
The maximum number of retry attempts to make before the request fails. Retry attempts with exponential backoff
continue until either the maximum number of attempts is made or until the duration of the
MaximumEventAgeInSeconds
is reached.
maximumRetryAttempts
- The maximum number of retry attempts to make before the request fails. Retry attempts with exponential
backoff continue until either the maximum number of attempts is made or until the duration of the
MaximumEventAgeInSeconds
is reached.public String toString()
toString
in class Object
Object.toString()
public RetryPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.