Class RetryPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.RetryPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RetryPolicy>
- Enclosing interface:
RetryPolicy
@Stability(Stable)
public static final class RetryPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<RetryPolicy>
A builder for
RetryPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumEventAge
(Duration maximumEventAge) Sets the value ofRetryPolicy.getMaximumEventAge()
maximumRetryAttempts
(Number maximumRetryAttempts) Sets the value ofRetryPolicy.getMaximumRetryAttempts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumEventAge
Sets the value ofRetryPolicy.getMaximumEventAge()
- Parameters:
maximumEventAge
- The maximum amount of time to continue to make retry attempts. This parameter is required.- Returns:
this
-
maximumRetryAttempts
Sets the value ofRetryPolicy.getMaximumRetryAttempts()
- Parameters:
maximumRetryAttempts
- The maximum number of retry attempts to make before the request fails. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RetryPolicy>
- Returns:
- a new instance of
RetryPolicy
- Throws:
NullPointerException
- if any required attribute was not provided
-