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 Details

    • Builder

      public Builder()
  • Method Details

    • maximumEventAge

      @Stability(Stable) public RetryPolicy.Builder maximumEventAge(Duration maximumEventAge)
      Parameters:
      maximumEventAge - The maximum amount of time to continue to make retry attempts. This parameter is required.
      Returns:
      this
    • maximumRetryAttempts

      @Stability(Stable) public RetryPolicy.Builder maximumRetryAttempts(Number maximumRetryAttempts)
      Parameters:
      maximumRetryAttempts - The maximum number of retry attempts to make before the request fails. This parameter is required.
      Returns:
      this
    • build

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