public static final class ImmutableCloudControllerRestClientFactory.Builder extends Object
ImmutableCloudControllerRestClientFactory.
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 ImmutableCloudControllerRestClientFactory.Builder from(CloudControllerRestClientFactory instance)
CloudControllerRestClientFactory 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 ImmutableCloudControllerRestClientFactory.Builder sslHandshakeTimeout(java.time.Duration sslHandshakeTimeout)
sslHandshakeTimeout to sslHandshakeTimeout.sslHandshakeTimeout - The value for sslHandshakeTimeoutthis builder for chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder sslHandshakeTimeout(Optional<? extends java.time.Duration> sslHandshakeTimeout)
sslHandshakeTimeout to sslHandshakeTimeout.sslHandshakeTimeout - The value for sslHandshakeTimeoutthis builder for use in a chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder connectTimeout(java.time.Duration connectTimeout)
connectTimeout to connectTimeout.connectTimeout - The value for connectTimeoutthis builder for chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder connectTimeout(Optional<? extends java.time.Duration> connectTimeout)
connectTimeout to connectTimeout.connectTimeout - The value for connectTimeoutthis builder for use in a chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder connectionPoolSize(int connectionPoolSize)
connectionPoolSize to connectionPoolSize.connectionPoolSize - The value for connectionPoolSizethis builder for chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder connectionPoolSize(Optional<Integer> connectionPoolSize)
connectionPoolSize to connectionPoolSize.connectionPoolSize - The value for connectionPoolSizethis builder for use in a chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder threadPoolSize(int threadPoolSize)
threadPoolSize to threadPoolSize.threadPoolSize - The value for threadPoolSizethis builder for chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder threadPoolSize(Optional<Integer> threadPoolSize)
threadPoolSize to threadPoolSize.threadPoolSize - The value for threadPoolSizethis builder for use in a chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder httpProxyConfiguration(HttpProxyConfiguration httpProxyConfiguration)
httpProxyConfiguration attribute.httpProxyConfiguration - The value for httpProxyConfiguration (can be null)this builder for use in a chained invocationpublic final ImmutableCloudControllerRestClientFactory.Builder shouldTrustSelfSignedCertificates(boolean shouldTrustSelfSignedCertificates)
shouldTrustSelfSignedCertificates attribute.
If not set, this attribute will have a default value as returned by the initializer of shouldTrustSelfSignedCertificates.
shouldTrustSelfSignedCertificates - The value for shouldTrustSelfSignedCertificatesthis builder for use in a chained invocationpublic ImmutableCloudControllerRestClientFactory build()
ImmutableCloudControllerRestClientFactory.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.