Package software.amazon.awssdk.core
Class Response.Builder<T>
- java.lang.Object
-
- software.amazon.awssdk.core.Response.Builder<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<T>build()Builds aResponseobject based on the values held by this builder.Response.Builder<T>exception(SdkException exception)The modelled exception returned by the service.Response.Builder<T>httpResponse(SdkHttpFullResponse httpResponse)The HTTP response that was received by the SDK prior to determining the result.Response.Builder<T>isSuccess(Boolean success)Indicates whether the result indicates success or failure of the original request.Response.Builder<T>response(T response)The modelled response object returned by the service.
-
-
-
Method Detail
-
isSuccess
public Response.Builder<T> isSuccess(Boolean success)
Indicates whether the result indicates success or failure of the original request. A true value indicates success; a false value indicates failure.
-
response
public Response.Builder<T> response(T response)
The modelled response object returned by the service. If the response was a failure, this value is likely to be null.
-
exception
public Response.Builder<T> exception(SdkException exception)
The modelled exception returned by the service. If the response was not a failure, this value is likely to be null.
-
httpResponse
public Response.Builder<T> httpResponse(SdkHttpFullResponse httpResponse)
The HTTP response that was received by the SDK prior to determining the result.
-
-