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