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
Modifier and TypeMethodDescriptionbackoffStrategy
(BackoffStrategy backoffStrategy) Define theBackoffStrategy
that computes the delay before the next retry request.build()
An immutable object that is created from the properties that have been set on the builder.maxAttempts
(Integer maxAttempts) Define the maximum number of attempts to try before transitioning the waiter to a failure state.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
equals, 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 Details
-
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
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
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 interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<WaiterOverrideConfiguration.Builder,
WaiterOverrideConfiguration> - Returns:
- an instance of T
-