Class CfnSubscriber.RetryPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eventsv2.CfnSubscriber.RetryPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriber.RetryPolicyProperty>
- Enclosing interface:
CfnSubscriber.RetryPolicyProperty
@Stability(Stable)
public static final class CfnSubscriber.RetryPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriber.RetryPolicyProperty>
A builder for
CfnSubscriber.RetryPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxEventAgeInSeconds(Number maxEventAgeInSeconds) Sets the value ofCfnSubscriber.RetryPolicyProperty.getMaxEventAgeInSeconds()maxRetryAttempts(Number maxRetryAttempts) Sets the value ofCfnSubscriber.RetryPolicyProperty.getMaxRetryAttempts()retryStrategy(String retryStrategy) Sets the value ofCfnSubscriber.RetryPolicyProperty.getRetryStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxEventAgeInSeconds
@Stability(Stable) public CfnSubscriber.RetryPolicyProperty.Builder maxEventAgeInSeconds(Number maxEventAgeInSeconds) Sets the value ofCfnSubscriber.RetryPolicyProperty.getMaxEventAgeInSeconds()- Parameters:
maxEventAgeInSeconds- The maximum age of an event in seconds, 60-86400 (24 hours). When an event reaches this age, retries stop; if OnFailureConfiguration is set, the event is delivered to that destination, otherwise it is dropped. The default is 300.- Returns:
this
-
maxRetryAttempts
@Stability(Stable) public CfnSubscriber.RetryPolicyProperty.Builder maxRetryAttempts(Number maxRetryAttempts) Sets the value ofCfnSubscriber.RetryPolicyProperty.getMaxRetryAttempts()- Parameters:
maxRetryAttempts- The maximum number of retry attempts, 0-185. When the attempts are exhausted, retries stop; if OnFailureConfiguration is set, the event is delivered to that destination, otherwise it is dropped. The default is 5.- Returns:
this
-
retryStrategy
@Stability(Stable) public CfnSubscriber.RetryPolicyProperty.Builder retryStrategy(String retryStrategy) Sets the value ofCfnSubscriber.RetryPolicyProperty.getRetryStrategy()- Parameters:
retryStrategy- Which errors are retried. ALL retries all errors. The default is ALL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriber.RetryPolicyProperty>- Returns:
- a new instance of
CfnSubscriber.RetryPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-