T
- the underlying AWS response type.public final class Response<T> extends Object
Modifier and Type | Method and Description |
---|---|
SdkException |
exception() |
static <T> Response<T> |
fromFailure(SdkException exception,
SdkHttpFullResponse httpResponse) |
static <T> Response<T> |
fromSuccess(T response,
SdkHttpFullResponse httpResponse) |
SdkHttpFullResponse |
httpResponse() |
boolean |
isFailure() |
boolean |
isSuccess() |
T |
response() |
public T response()
public SdkException exception()
public SdkHttpFullResponse httpResponse()
public boolean isSuccess()
public boolean isFailure()
public static <T> Response<T> fromSuccess(T response, SdkHttpFullResponse httpResponse)
public static <T> Response<T> fromFailure(SdkException exception, SdkHttpFullResponse httpResponse)
Copyright © 2019. All rights reserved.