Class RetryProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.RetryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RetryProps>
- Enclosing interface:
RetryProps
@Stability(Stable)
public static final class RetryProps.Builder
extends Object
implements software.amazon.jsii.Builder<RetryProps>
A builder for
RetryProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackoffRate
(Number backoffRate) Sets the value ofRetryProps.getBackoffRate()
build()
Builds the configured instance.Sets the value ofRetryProps.getErrors()
Sets the value ofRetryProps.getInterval()
jitterStrategy
(JitterType jitterStrategy) Sets the value ofRetryProps.getJitterStrategy()
maxAttempts
(Number maxAttempts) Sets the value ofRetryProps.getMaxAttempts()
Sets the value ofRetryProps.getMaxDelay()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backoffRate
Sets the value ofRetryProps.getBackoffRate()
- Parameters:
backoffRate
- Multiplication for how much longer the wait interval gets on every retry.- Returns:
this
-
errors
Sets the value ofRetryProps.getErrors()
- Parameters:
errors
- Errors to retry. A list of error strings to retry, which can be either predefined errors (for example Errors.NoChoiceMatched) or a self-defined error.- Returns:
this
-
interval
Sets the value ofRetryProps.getInterval()
- Parameters:
interval
- How many seconds to wait initially before retrying.- Returns:
this
-
jitterStrategy
Sets the value ofRetryProps.getJitterStrategy()
- Parameters:
jitterStrategy
- Introduces a randomization over the retry interval.- Returns:
this
-
maxAttempts
Sets the value ofRetryProps.getMaxAttempts()
- Parameters:
maxAttempts
- How many times to retry this particular error. May be 0 to disable retry for specific errors (in case you have a catch-all retry policy).- Returns:
this
-
maxDelay
Sets the value ofRetryProps.getMaxDelay()
- Parameters:
maxDelay
- Maximum limit on retry interval growth during exponential backoff.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RetryProps>
- Returns:
- a new instance of
RetryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-