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 Details

    • Builder

      public Builder()
  • Method Details

    • backoffRate

      @Stability(Stable) public RetryProps.Builder backoffRate(Number backoffRate)
      Sets the value of RetryProps.getBackoffRate()
      Parameters:
      backoffRate - Multiplication for how much longer the wait interval gets on every retry.
      Returns:
      this
    • errors

      @Stability(Stable) public RetryProps.Builder errors(List<String> errors)
      Sets the value of RetryProps.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

      @Stability(Stable) public RetryProps.Builder interval(Duration interval)
      Sets the value of RetryProps.getInterval()
      Parameters:
      interval - How many seconds to wait initially before retrying.
      Returns:
      this
    • jitterStrategy

      @Stability(Stable) public RetryProps.Builder jitterStrategy(JitterType jitterStrategy)
      Parameters:
      jitterStrategy - Introduces a randomization over the retry interval.
      Returns:
      this
    • maxAttempts

      @Stability(Stable) public RetryProps.Builder maxAttempts(Number maxAttempts)
      Sets the value of RetryProps.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

      @Stability(Stable) public RetryProps.Builder maxDelay(Duration maxDelay)
      Sets the value of RetryProps.getMaxDelay()
      Parameters:
      maxDelay - Maximum limit on retry interval growth during exponential backoff.
      Returns:
      this
    • build

      @Stability(Stable) public RetryProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<RetryProps>
      Returns:
      a new instance of RetryProps
      Throws:
      NullPointerException - if any required attribute was not provided