@Generated(value="org.immutables.processor.ProxyProcessor") public final class HttpClientResponseWithParsedBody<T> extends Object implements _HttpClientResponseWithParsedBody<T>
_HttpClientResponseWithParsedBody.
Use the builder to create immutable instances:
HttpClientResponseWithParsedBody.builder().
Use the static factory method to create immutable instances:
HttpClientResponseWithParsedBody.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientResponseWithParsedBody.Builder<T>
Builds instances of type
HttpClientResponseWithParsedBody. |
| Modifier and Type | Method and Description |
|---|---|
static <T> HttpClientResponseWithParsedBody.Builder<T> |
builder()
Creates a builder for
HttpClientResponseWithParsedBody. |
boolean |
equals(Object another)
This instance is equal to all instances of
HttpClientResponseWithParsedBody that have equal attribute values. |
Optional<T> |
getBody() |
reactor.netty.http.client.HttpClientResponse |
getResponse() |
int |
hashCode()
Computes a hash code from attributes:
body, response. |
static <T> HttpClientResponseWithParsedBody<T> |
of(Optional<? extends T> body,
reactor.netty.http.client.HttpClientResponse response)
Construct a new immutable
HttpClientResponseWithParsedBody instance. |
String |
toString()
Prints the immutable value
HttpClientResponseWithParsedBody with attribute values. |
public Optional<T> getBody()
getBody in interface _HttpClientResponseWithParsedBody<T>body attributepublic reactor.netty.http.client.HttpClientResponse getResponse()
getResponse in interface _HttpClientResponseWithParsedBody<T>response attributepublic boolean equals(Object another)
HttpClientResponseWithParsedBody that have equal attribute values.public int hashCode()
body, response.public String toString()
HttpClientResponseWithParsedBody with attribute values.public static <T> HttpClientResponseWithParsedBody<T> of(Optional<? extends T> body, reactor.netty.http.client.HttpClientResponse response)
HttpClientResponseWithParsedBody instance.T - generic parameter Tbody - The value for the body attributeresponse - The value for the response attributepublic static <T> HttpClientResponseWithParsedBody.Builder<T> builder()
HttpClientResponseWithParsedBody.
HttpClientResponseWithParsedBody.<T>builder()
.body(T) // optional body
.response(reactor.netty.http.client.HttpClientResponse) // required response
.build();
T - generic parameter TCopyright © 2021. All rights reserved.