Interface SdkHttpResponse
- All Superinterfaces:
SdkHttpHeaders
,Serializable
,ToCopyableBuilder<SdkHttpResponse.Builder,
SdkHttpResponse>
- All Known Subinterfaces:
SdkHttpFullResponse
@Immutable
public interface SdkHttpResponse
extends ToCopyableBuilder<SdkHttpResponse.Builder,SdkHttpResponse>, SdkHttpHeaders, Serializable
An immutable HTTP response without access to the response body.
SdkHttpFullResponse
should be used when access to a
response body stream is required.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder for aDefaultSdkHttpFullResponse
. -
Method Summary
Modifier and TypeMethodDescriptionstatic SdkHttpFullResponse.Builder
builder()
default boolean
If we get back any 2xx status code, then we know we should treat the service call as successful.int
Returns the HTTP status code (eg.Returns the HTTP status text returned by the service.Methods inherited from interface software.amazon.awssdk.http.SdkHttpHeaders
anyMatchingHeader, firstMatchingHeader, firstMatchingHeader, forEachHeader, headers, matchingHeaders, numHeaders
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy, toBuilder
-
Method Details
-
builder
- Returns:
- Builder instance to construct a
DefaultSdkHttpFullResponse
.
-
statusText
-
statusCode
int statusCode()Returns the HTTP status code (eg. 200, 404, etc.) returned by the service.This will always be positive.
-
isSuccessful
default boolean isSuccessful()If we get back any 2xx status code, then we know we should treat the service call as successful.
-