public static final class ReactorCloudFoundryClient.Builder extends Object
ReactorCloudFoundryClient.
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 |
|---|---|
ReactorCloudFoundryClient |
build()
Builds a new
ReactorCloudFoundryClient. |
ReactorCloudFoundryClient.Builder |
connectionContext(ConnectionContext connectionContext)
Initializes the value for the
connectionContext attribute. |
ReactorCloudFoundryClient.Builder |
from(ReactorCloudFoundryClient instance)
Fill a builder with attribute values from the provided
ReactorCloudFoundryClient instance. |
ReactorCloudFoundryClient.Builder |
rootV2(reactor.core.publisher.Mono<String> rootV2)
Initializes the value for the
rootV2 attribute. |
ReactorCloudFoundryClient.Builder |
rootV3(reactor.core.publisher.Mono<String> rootV3)
Initializes the value for the
rootV3 attribute. |
ReactorCloudFoundryClient.Builder |
tokenProvider(TokenProvider tokenProvider)
Initializes the value for the
tokenProvider attribute. |
public final ReactorCloudFoundryClient.Builder from(ReactorCloudFoundryClient instance)
ReactorCloudFoundryClient 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 ReactorCloudFoundryClient.Builder connectionContext(ConnectionContext connectionContext)
connectionContext attribute.connectionContext - The value for connectionContextthis builder for use in a chained invocationpublic final ReactorCloudFoundryClient.Builder rootV2(reactor.core.publisher.Mono<String> rootV2)
rootV2 attribute.
If not set, this attribute will have a default value as returned by the initializer of rootV2.
rootV2 - The value for rootV2this builder for use in a chained invocationpublic final ReactorCloudFoundryClient.Builder rootV3(reactor.core.publisher.Mono<String> rootV3)
rootV3 attribute.
If not set, this attribute will have a default value as returned by the initializer of rootV3.
rootV3 - The value for rootV3this builder for use in a chained invocationpublic final ReactorCloudFoundryClient.Builder tokenProvider(TokenProvider tokenProvider)
tokenProvider attribute.tokenProvider - The value for tokenProviderthis builder for use in a chained invocationpublic ReactorCloudFoundryClient build()
ReactorCloudFoundryClient.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.