Class RetryableTrait.Builder

All Implemented Interfaces:
SmithyBuilder<RetryableTrait>
Enclosing class:
RetryableTrait

public static final class RetryableTrait.Builder extends AbstractTraitBuilder<RetryableTrait,RetryableTrait.Builder>
Builds a RetryableTrait trait.
  • Method Details

    • build

      public RetryableTrait build()
      Description copied from interface: SmithyBuilder
      Creates an immutable object that is created from the properties that have been set on the builder.
      Returns:
      an instance of T
    • throttling

      public RetryableTrait.Builder throttling(boolean throttling)
      Indicates if the retry is considered a throttle.
      Parameters:
      throttling - Set to true if the retry is a throttle.
      Returns:
      Returns the builder.