Class DefaultWaiter.DefaultBuilder<T>
- java.lang.Object
-
- software.amazon.awssdk.core.internal.waiters.DefaultWaiter.DefaultBuilder<T>
-
- All Implemented Interfaces:
Waiter.Builder<T>
,WaiterBuilder<T,Waiter.Builder<T>>
- Enclosing class:
- DefaultWaiter<T>
public static final class DefaultWaiter.DefaultBuilder<T> extends Object implements Waiter.Builder<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Waiter.Builder<T>
acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors)
Defines a list ofWaiterAcceptor
s to check whether an expected state has met after executing an operation.Waiter.Builder<T>
addAcceptor(WaiterAcceptor<? super T> waiterAcceptor)
Adds aWaiterAcceptor
to the end of the ordered waiterAcceptors list.Waiter<T>
build()
An immutable object that is created from the properties that have been set on the builder.Waiter.Builder<T>
overrideConfiguration(WaiterOverrideConfiguration overrideConfiguration)
Defines overrides to the default SDK waiter configuration that should be used for waiters created by this builder.-
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.core.waiters.WaiterBuilder
overrideConfiguration
-
-
-
-
Method Detail
-
acceptors
public Waiter.Builder<T> acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors)
Description copied from interface:WaiterBuilder
Defines a list ofWaiterAcceptor
s to check whether an expected state has met after executing an operation.The SDK will iterate over the acceptors list and the first acceptor to match the result of the operation transitions the waiter to the state specified in the acceptor.
This completely overrides any WaiterAcceptor currently configured in the builder via
WaiterBuilder.addAcceptor(WaiterAcceptor)
- Specified by:
acceptors
in interfaceWaiterBuilder<T,Waiter.Builder<T>>
- Parameters:
waiterAcceptors
- the waiter acceptors- Returns:
- a reference to this object so that method calls can be chained together.
-
overrideConfiguration
public Waiter.Builder<T> overrideConfiguration(WaiterOverrideConfiguration overrideConfiguration)
Description copied from interface:WaiterBuilder
Defines overrides to the default SDK waiter configuration that should be used for waiters created by this builder.- Specified by:
overrideConfiguration
in interfaceWaiterBuilder<T,Waiter.Builder<T>>
- Parameters:
overrideConfiguration
- the override configuration- Returns:
- a reference to this object so that method calls can be chained together.
-
addAcceptor
public Waiter.Builder<T> addAcceptor(WaiterAcceptor<? super T> waiterAcceptor)
Description copied from interface:WaiterBuilder
Adds aWaiterAcceptor
to the end of the ordered waiterAcceptors list.The SDK will iterate over the acceptors list and the first acceptor to match the result of the operation transitions the waiter to the state specified in the acceptor.
- Specified by:
addAcceptor
in interfaceWaiterBuilder<T,Waiter.Builder<T>>
- Parameters:
waiterAcceptor
- the waiter acceptors- Returns:
- a reference to this object so that method calls can be chained together.
-
build
public Waiter<T> build()
Description copied from interface:Waiter.Builder
An immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceWaiter.Builder<T>
- Returns:
- a reference to this object so that method calls can be chained together.
-
-