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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WaiterOverrideConfiguration.Builder
backoffStrategy(BackoffStrategy backoffStrategy)
Define theBackoffStrategy
that computes the delay before the next retry request.WaiterOverrideConfiguration
build()
WaiterOverrideConfiguration.Builder
maxAttempts(Integer maxAttempts)
Define the maximum number of attempts to try before transitioning the waiter to a failure state.WaiterOverrideConfiguration.Builder
waitTimeout(Duration waitTimeout)
Define the amount of time to wait for the resource to transition to the desired state before timing out.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
backoffStrategy
public WaiterOverrideConfiguration.Builder backoffStrategy(BackoffStrategy backoffStrategy)
Define theBackoffStrategy
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
public WaiterOverrideConfiguration build()
- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<WaiterOverrideConfiguration.Builder,WaiterOverrideConfiguration>
-
-