@Stability(value=Experimental) public static final class RetryProps.Builder extends Object implements software.amazon.jsii.Builder<RetryProps>
RetryProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RetryProps.Builder |
backoffRate(Number backoffRate)
Sets the value of
RetryProps.getBackoffRate() |
RetryProps |
build()
Builds the configured instance.
|
RetryProps.Builder |
errors(List<String> errors)
Sets the value of
RetryProps.getErrors() |
RetryProps.Builder |
interval(Duration interval)
Sets the value of
RetryProps.getInterval() |
RetryProps.Builder |
maxAttempts(Number maxAttempts)
Sets the value of
RetryProps.getMaxAttempts() |
@Stability(value=Experimental) public RetryProps.Builder backoffRate(Number backoffRate)
RetryProps.getBackoffRate()backoffRate - Multiplication for how much longer the wait interval gets on every retry.this@Stability(value=Experimental) public RetryProps.Builder errors(List<String> errors)
RetryProps.getErrors()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.this@Stability(value=Experimental) public RetryProps.Builder interval(Duration interval)
RetryProps.getInterval()interval - How many seconds to wait initially before retrying.this@Stability(value=Experimental) public RetryProps.Builder maxAttempts(Number maxAttempts)
RetryProps.getMaxAttempts()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).this@Stability(value=Experimental) public RetryProps build()
build in interface software.amazon.jsii.Builder<RetryProps>RetryPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.