@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudControllerRestClientFactory extends CloudControllerRestClientFactory
CloudControllerRestClientFactory.
Use the builder to create immutable instances:
ImmutableCloudControllerRestClientFactory.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudControllerRestClientFactory.Builder
Builds instances of type
ImmutableCloudControllerRestClientFactory. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudControllerRestClientFactory.Builder |
builder()
Creates a builder for
ImmutableCloudControllerRestClientFactory. |
static ImmutableCloudControllerRestClientFactory |
copyOf(CloudControllerRestClientFactory instance)
Creates an immutable copy of a
CloudControllerRestClientFactory value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudControllerRestClientFactory that have equal attribute values. |
CloudFoundryClientFactory |
getCloudFoundryClientFactory() |
Optional<Integer> |
getConnectionPoolSize() |
Optional<java.time.Duration> |
getConnectTimeout() |
HttpProxyConfiguration |
getHttpProxyConfiguration() |
Optional<java.time.Duration> |
getSslHandshakeTimeout() |
Optional<Integer> |
getThreadPoolSize() |
int |
hashCode()
Computes a hash code from attributes:
sslHandshakeTimeout, connectTimeout, connectionPoolSize, threadPoolSize, httpProxyConfiguration, shouldTrustSelfSignedCertificates, cloudFoundryClientFactory. |
boolean |
shouldTrustSelfSignedCertificates() |
String |
toString()
Prints the immutable value
CloudControllerRestClientFactory with attribute values. |
ImmutableCloudControllerRestClientFactory |
withConnectionPoolSize(int value)
Copy the current immutable object by setting a present value for the optional
connectionPoolSize attribute. |
ImmutableCloudControllerRestClientFactory |
withConnectionPoolSize(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
connectionPoolSize attribute. |
ImmutableCloudControllerRestClientFactory |
withConnectTimeout(java.time.Duration value)
Copy the current immutable object by setting a present value for the optional
connectTimeout attribute. |
ImmutableCloudControllerRestClientFactory |
withConnectTimeout(Optional<? extends java.time.Duration> optional)
Copy the current immutable object by setting an optional value for the
connectTimeout attribute. |
ImmutableCloudControllerRestClientFactory |
withHttpProxyConfiguration(HttpProxyConfiguration value)
Copy the current immutable object by setting a value for the
httpProxyConfiguration attribute. |
ImmutableCloudControllerRestClientFactory |
withShouldTrustSelfSignedCertificates(boolean value)
Copy the current immutable object by setting a value for the
shouldTrustSelfSignedCertificates attribute. |
ImmutableCloudControllerRestClientFactory |
withSslHandshakeTimeout(java.time.Duration value)
Copy the current immutable object by setting a present value for the optional
sslHandshakeTimeout attribute. |
ImmutableCloudControllerRestClientFactory |
withSslHandshakeTimeout(Optional<? extends java.time.Duration> optional)
Copy the current immutable object by setting an optional value for the
sslHandshakeTimeout attribute. |
ImmutableCloudControllerRestClientFactory |
withThreadPoolSize(int value)
Copy the current immutable object by setting a present value for the optional
threadPoolSize attribute. |
ImmutableCloudControllerRestClientFactory |
withThreadPoolSize(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
threadPoolSize attribute. |
createClient, createClient, createClient, createClient, createClient, createClient, getGeneralPurposeRestTemplatepublic Optional<java.time.Duration> getSslHandshakeTimeout()
getSslHandshakeTimeout in class CloudControllerRestClientFactorysslHandshakeTimeout attributepublic Optional<java.time.Duration> getConnectTimeout()
getConnectTimeout in class CloudControllerRestClientFactoryconnectTimeout attributepublic Optional<Integer> getConnectionPoolSize()
getConnectionPoolSize in class CloudControllerRestClientFactoryconnectionPoolSize attributepublic Optional<Integer> getThreadPoolSize()
getThreadPoolSize in class CloudControllerRestClientFactorythreadPoolSize attributepublic HttpProxyConfiguration getHttpProxyConfiguration()
getHttpProxyConfiguration in class CloudControllerRestClientFactoryhttpProxyConfiguration attributepublic boolean shouldTrustSelfSignedCertificates()
shouldTrustSelfSignedCertificates in class CloudControllerRestClientFactoryshouldTrustSelfSignedCertificates attributepublic CloudFoundryClientFactory getCloudFoundryClientFactory()
getCloudFoundryClientFactory in class CloudControllerRestClientFactorycloudFoundryClientFactory attributepublic final ImmutableCloudControllerRestClientFactory withSslHandshakeTimeout(java.time.Duration value)
sslHandshakeTimeout attribute.value - The value for sslHandshakeTimeoutthis objectpublic final ImmutableCloudControllerRestClientFactory withSslHandshakeTimeout(Optional<? extends java.time.Duration> optional)
sslHandshakeTimeout attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for sslHandshakeTimeoutthis objectpublic final ImmutableCloudControllerRestClientFactory withConnectTimeout(java.time.Duration value)
connectTimeout attribute.value - The value for connectTimeoutthis objectpublic final ImmutableCloudControllerRestClientFactory withConnectTimeout(Optional<? extends java.time.Duration> optional)
connectTimeout attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for connectTimeoutthis objectpublic final ImmutableCloudControllerRestClientFactory withConnectionPoolSize(int value)
connectionPoolSize attribute.value - The value for connectionPoolSizethis objectpublic final ImmutableCloudControllerRestClientFactory withConnectionPoolSize(Optional<Integer> optional)
connectionPoolSize attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for connectionPoolSizethis objectpublic final ImmutableCloudControllerRestClientFactory withThreadPoolSize(int value)
threadPoolSize attribute.value - The value for threadPoolSizethis objectpublic final ImmutableCloudControllerRestClientFactory withThreadPoolSize(Optional<Integer> optional)
threadPoolSize attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for threadPoolSizethis objectpublic final ImmutableCloudControllerRestClientFactory withHttpProxyConfiguration(HttpProxyConfiguration value)
httpProxyConfiguration attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for httpProxyConfiguration (can be null)this objectpublic final ImmutableCloudControllerRestClientFactory withShouldTrustSelfSignedCertificates(boolean value)
shouldTrustSelfSignedCertificates attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for shouldTrustSelfSignedCertificatesthis objectpublic boolean equals(Object another)
ImmutableCloudControllerRestClientFactory that have equal attribute values.public int hashCode()
sslHandshakeTimeout, connectTimeout, connectionPoolSize, threadPoolSize, httpProxyConfiguration, shouldTrustSelfSignedCertificates, cloudFoundryClientFactory.public String toString()
CloudControllerRestClientFactory with attribute values.public static ImmutableCloudControllerRestClientFactory copyOf(CloudControllerRestClientFactory instance)
CloudControllerRestClientFactory value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableCloudControllerRestClientFactory.Builder builder()
ImmutableCloudControllerRestClientFactory.
ImmutableCloudControllerRestClientFactory.builder()
.sslHandshakeTimeout(java.time.Duration) // optional sslHandshakeTimeout
.connectTimeout(java.time.Duration) // optional connectTimeout
.connectionPoolSize(Integer) // optional connectionPoolSize
.threadPoolSize(Integer) // optional threadPoolSize
.httpProxyConfiguration(org.cloudfoundry.client.lib.HttpProxyConfiguration | null) // nullable httpProxyConfiguration
.shouldTrustSelfSignedCertificates(boolean) // optional shouldTrustSelfSignedCertificates
.build();
Copyright © 2020 SAP SE. All rights reserved.