public static final class HttpClientResponseWithBody.Builder extends Object
HttpClientResponseWithBody.
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 |
|---|---|
HttpClientResponseWithBody.Builder |
body(reactor.netty.ByteBufFlux body)
Initializes the value for the
body attribute. |
HttpClientResponseWithBody |
build()
Builds a new
HttpClientResponseWithBody. |
HttpClientResponseWithBody.Builder |
from(_HttpClientResponseWithBody instance)
Fill a builder with attribute values from the provided
_HttpClientResponseWithBody instance. |
HttpClientResponseWithBody.Builder |
response(reactor.netty.http.client.HttpClientResponse response)
Initializes the value for the
response attribute. |
public final HttpClientResponseWithBody.Builder from(_HttpClientResponseWithBody instance)
_HttpClientResponseWithBody 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 HttpClientResponseWithBody.Builder body(reactor.netty.ByteBufFlux body)
body attribute.body - The value for bodythis builder for use in a chained invocationpublic final HttpClientResponseWithBody.Builder response(reactor.netty.http.client.HttpClientResponse response)
response attribute.response - The value for responsethis builder for use in a chained invocationpublic HttpClientResponseWithBody build()
HttpClientResponseWithBody.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.