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,
HttpResponse httpResponse) |
static <T> Response<T> |
fromSuccess(T response,
HttpResponse httpResponse) |
HttpResponse |
httpResponse() |
boolean |
isFailure() |
boolean |
isSuccess() |
T |
response() |
public T response()
public SdkException exception()
public HttpResponse httpResponse()
public boolean isSuccess()
public boolean isFailure()
public static <T> Response<T> fromSuccess(T response, HttpResponse httpResponse)
public static <T> Response<T> fromFailure(SdkException exception, HttpResponse httpResponse)
Copyright © 2018. All rights reserved.