Class CfnRule.RetryPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.RetryPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.RetryPolicyProperty>
- Enclosing interface:
CfnRule.RetryPolicyProperty
@Stability(Stable)
public static final class CfnRule.RetryPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.RetryPolicyProperty>
A builder for
CfnRule.RetryPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumEventAgeInSeconds
(Number maximumEventAgeInSeconds) Sets the value ofCfnRule.RetryPolicyProperty.getMaximumEventAgeInSeconds()
maximumRetryAttempts
(Number maximumRetryAttempts) Sets the value ofCfnRule.RetryPolicyProperty.getMaximumRetryAttempts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumEventAgeInSeconds
@Stability(Stable) public CfnRule.RetryPolicyProperty.Builder maximumEventAgeInSeconds(Number maximumEventAgeInSeconds) Sets the value ofCfnRule.RetryPolicyProperty.getMaximumEventAgeInSeconds()
- Parameters:
maximumEventAgeInSeconds
- The maximum amount of time, in seconds, to continue to make retry attempts.- Returns:
this
-
maximumRetryAttempts
@Stability(Stable) public CfnRule.RetryPolicyProperty.Builder maximumRetryAttempts(Number maximumRetryAttempts) Sets the value ofCfnRule.RetryPolicyProperty.getMaximumRetryAttempts()
- Parameters:
maximumRetryAttempts
- The maximum number of retry attempts to make before the request fails. Retry attempts continue until either the maximum number of attempts is made or until the duration of theMaximumEventAgeInSeconds
is met.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.RetryPolicyProperty>
- Returns:
- a new instance of
CfnRule.RetryPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-