Class DefaultWaiterResponse.Builder<T>
- java.lang.Object
-
- software.amazon.awssdk.core.internal.waiters.DefaultWaiterResponse.Builder<T>
-
- Enclosing class:
- DefaultWaiterResponse<T>
public static final class DefaultWaiterResponse.Builder<T> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultWaiterResponse.Builder<T>attemptsExecuted(Integer attemptsExecuted)Defines the number of attempts executed in the waiter operationWaiterResponse<T>build()DefaultWaiterResponse.Builder<T>exception(Throwable exception)Defines the exception thrown from the waiter operation that has matched with the waiter success conditionDefaultWaiterResponse.Builder<T>response(T response)Defines the response received that has matched with the waiter success condition.
-
-
-
Method Detail
-
response
public DefaultWaiterResponse.Builder<T> response(T response)
Defines the response received that has matched with the waiter success condition.- Parameters:
response- the response- Returns:
- the chained builder
-
exception
public DefaultWaiterResponse.Builder<T> exception(Throwable exception)
Defines the exception thrown from the waiter operation that has matched with the waiter success condition- Parameters:
exception- the exception- Returns:
- the chained builder
-
attemptsExecuted
public DefaultWaiterResponse.Builder<T> attemptsExecuted(Integer attemptsExecuted)
Defines the number of attempts executed in the waiter operation- Parameters:
attemptsExecuted- the number of attempts- Returns:
- the chained builder
-
build
public WaiterResponse<T> build()
-
-