public static final class HttpClientResponseWithParsedBody.Builder<T> extends Object
HttpClientResponseWithParsedBody.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
HttpClientResponseWithParsedBody.Builder<T> |
body(Optional<? extends T> body)
Initializes the optional value
body to body. |
HttpClientResponseWithParsedBody.Builder<T> |
body(T body)
Initializes the optional value
body to body. |
HttpClientResponseWithParsedBody<T> |
build()
Builds a new
HttpClientResponseWithParsedBody. |
HttpClientResponseWithParsedBody.Builder<T> |
from(_HttpClientResponseWithParsedBody<T> instance)
Fill a builder with attribute values from the provided
_HttpClientResponseWithParsedBody instance. |
HttpClientResponseWithParsedBody.Builder<T> |
response(reactor.netty.http.client.HttpClientResponse response)
Initializes the value for the
response attribute. |
public final HttpClientResponseWithParsedBody.Builder<T> from(_HttpClientResponseWithParsedBody<T> instance)
_HttpClientResponseWithParsedBody instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final HttpClientResponseWithParsedBody.Builder<T> body(T body)
body to body.body - The value for bodythis builder for chained invocationpublic final HttpClientResponseWithParsedBody.Builder<T> body(Optional<? extends T> body)
body to body.body - The value for bodythis builder for use in a chained invocationpublic final HttpClientResponseWithParsedBody.Builder<T> response(reactor.netty.http.client.HttpClientResponse response)
response attribute.response - The value for responsethis builder for use in a chained invocationpublic HttpClientResponseWithParsedBody<T> build()
HttpClientResponseWithParsedBody.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.