Class CfnSchedule.RetryPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.scheduler.CfnSchedule.RetryPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchedule.RetryPolicyProperty>
- Enclosing interface:
- CfnSchedule.RetryPolicyProperty
@Stability(Stable)
public static final class CfnSchedule.RetryPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchedule.RetryPolicyProperty>
A builder for
CfnSchedule.RetryPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumEventAgeInSeconds
(Number maximumEventAgeInSeconds) Sets the value ofCfnSchedule.RetryPolicyProperty.getMaximumEventAgeInSeconds()
maximumRetryAttempts
(Number maximumRetryAttempts) Sets the value ofCfnSchedule.RetryPolicyProperty.getMaximumRetryAttempts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumEventAgeInSeconds
@Stability(Stable) public CfnSchedule.RetryPolicyProperty.Builder maximumEventAgeInSeconds(Number maximumEventAgeInSeconds) Sets the value ofCfnSchedule.RetryPolicyProperty.getMaximumEventAgeInSeconds()
- Parameters:
maximumEventAgeInSeconds
- The maximum amount of time, in seconds, to continue to make retry attempts.- Returns:
this
-
maximumRetryAttempts
@Stability(Stable) public CfnSchedule.RetryPolicyProperty.Builder maximumRetryAttempts(Number maximumRetryAttempts) Sets the value ofCfnSchedule.RetryPolicyProperty.getMaximumRetryAttempts()
- Parameters:
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 theMaximumEventAgeInSeconds
is reached.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSchedule.RetryPolicyProperty>
- Returns:
- a new instance of
CfnSchedule.RetryPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-