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