Class ResponseOrException<R>
java.lang.Object
software.amazon.awssdk.core.internal.waiters.ResponseOrException<R>
- Type Parameters:
R
- response type
Represents a value that can be either a response or a Throwable
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static <R> ResponseOrException
<R> Create a new ResponseOrException with the exceptionint
hashCode()
response()
static <R> ResponseOrException
<R> response
(R value) Create a new ResponseOrException with the response
-
Method Details
-
response
- Returns:
- the optional response that has matched with the waiter success condition
-
exception
- Returns:
- the optional exception that has matched with the waiter success condition
-
response
Create a new ResponseOrException with the response- Type Parameters:
R
- Response type- Parameters:
value
- response
-
exception
Create a new ResponseOrException with the exception- Type Parameters:
R
- Response type- Parameters:
value
- exception
-
equals
-
hashCode
public int hashCode()
-