Package software.amazon.awssdk.core
Class Response<T>
java.lang.Object
software.amazon.awssdk.core.Response<T>
- Type Parameters:
T
- the modelled SDK response type.
Response wrapper that indicates success or failure with the associated unmarshalled response object or exception
object. This object is used by the core request/response pipeline to pass response metadata alongside the actual
deserialized response object through different stages of the pipeline.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Response.Builder
<T> builder()
Returns a newly initialized builder object for aResponse
boolean
The modelled exception returned by the service.int
hashCode()
The HTTP response that was received by the SDK prior to determining the result.Indicates whether the result indicates success or failure of the original request.response()
The modelled response object returned by the service.Creates a new builder with initial values pulled from the current object.
-
Method Details
-
builder
Returns a newly initialized builder object for aResponse
- Type Parameters:
T
- Modelled response type.
-
toBuilder
Creates a new builder with initial values pulled from the current object. -
response
The modelled response object returned by the service. If the response was a failure, this value is likely to be null. -
exception
The modelled exception returned by the service. If the response was not a failure, this value is likely to be null. -
httpResponse
The HTTP response that was received by the SDK prior to determining the result. -
isSuccess
Indicates whether the result indicates success or failure of the original request. A true value indicates success; a false value indicates failure. -
equals
-
hashCode
public int hashCode()
-