Class WaiterOverrideConfiguration.Builder

java.lang.Object
software.amazon.awssdk.core.waiters.WaiterOverrideConfiguration.Builder
All Implemented Interfaces:
Buildable, CopyableBuilder<WaiterOverrideConfiguration.Builder,WaiterOverrideConfiguration>, SdkBuilder<WaiterOverrideConfiguration.Builder,WaiterOverrideConfiguration>
Enclosing class:
WaiterOverrideConfiguration

public static final class WaiterOverrideConfiguration.Builder extends Object implements CopyableBuilder<WaiterOverrideConfiguration.Builder,WaiterOverrideConfiguration>
  • Method Details

    • backoffStrategy

      public WaiterOverrideConfiguration.Builder backoffStrategy(BackoffStrategy backoffStrategy)
      Define the BackoffStrategy that computes the delay before the next retry request.
      Parameters:
      backoffStrategy - The new backoffStrategy value.
      Returns:
      This object for method chaining.
    • maxAttempts

      public WaiterOverrideConfiguration.Builder maxAttempts(Integer maxAttempts)
      Define the maximum number of attempts to try before transitioning the waiter to a failure state.
      Parameters:
      maxAttempts - The new maxAttempts value.
      Returns:
      This object for method chaining.
    • waitTimeout

      public WaiterOverrideConfiguration.Builder waitTimeout(Duration waitTimeout)
      Define the amount of time to wait for the resource to transition to the desired state before timing out. This wait timeout doesn't have strict guarantees on how quickly a request is aborted when the timeout is breached. The request can timeout early if it is determined that the next retry will breach the max wait time. It's disabled by default.
      Parameters:
      waitTimeout - The new waitTimeout value.
      Returns:
      This object for method chaining.
    • build

      Description copied from interface: SdkBuilder
      An immutable object that is created from the properties that have been set on the builder.
      Specified by:
      build in interface Buildable
      Specified by:
      build in interface SdkBuilder<WaiterOverrideConfiguration.Builder,WaiterOverrideConfiguration>
      Returns:
      an instance of T