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.
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.
Collection elements and entries will be added, not replaced.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 requestTag(String key, String value)
requestTags map.key - The key in the requestTags mapvalue - The associated value in the requestTags mapthis builder for use in a chained invocationpublic final ReactorCloudFoundryClient.Builder requestTag(Map.Entry<String,? extends String> entry)
requestTags map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ReactorCloudFoundryClient.Builder requestTags(Map<String,? extends String> entries)
requestTags map. Nulls are not permittedentries - The entries that will be added to the requestTags mapthis builder for use in a chained invocationpublic final ReactorCloudFoundryClient.Builder putAllRequestTags(Map<String,? extends String> entries)
requestTags map. Nulls are not permittedentries - The entries that will be added to the requestTags mapthis builder for use in a chained invocationpublic final ReactorCloudFoundryClient.Builder rootV2(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(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 © 2024. All rights reserved.