@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudFoundryClientFactory extends CloudFoundryClientFactory
CloudFoundryClientFactory.
Use the builder to create immutable instances:
ImmutableCloudFoundryClientFactory.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudFoundryClientFactory.Builder
Builds instances of type
ImmutableCloudFoundryClientFactory. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudFoundryClientFactory.Builder |
builder()
Creates a builder for
ImmutableCloudFoundryClientFactory. |
static ImmutableCloudFoundryClientFactory |
copyOf(CloudFoundryClientFactory instance)
Creates an immutable copy of a
CloudFoundryClientFactory value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudFoundryClientFactory that have equal attribute values. |
Optional<Integer> |
getConnectionPoolSize() |
Optional<java.time.Duration> |
getConnectTimeout() |
Optional<java.time.Duration> |
getSslHandshakeTimeout() |
Optional<Integer> |
getThreadPoolSize() |
int |
hashCode()
Computes a hash code from attributes:
sslHandshakeTimeout, connectTimeout, connectionPoolSize, threadPoolSize. |
String |
toString()
Prints the immutable value
CloudFoundryClientFactory with attribute values. |
ImmutableCloudFoundryClientFactory |
withConnectionPoolSize(int value)
Copy the current immutable object by setting a present value for the optional
connectionPoolSize attribute. |
ImmutableCloudFoundryClientFactory |
withConnectionPoolSize(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
connectionPoolSize attribute. |
ImmutableCloudFoundryClientFactory |
withConnectTimeout(java.time.Duration value)
Copy the current immutable object by setting a present value for the optional
connectTimeout attribute. |
ImmutableCloudFoundryClientFactory |
withConnectTimeout(Optional<? extends java.time.Duration> optional)
Copy the current immutable object by setting an optional value for the
connectTimeout attribute. |
ImmutableCloudFoundryClientFactory |
withSslHandshakeTimeout(java.time.Duration value)
Copy the current immutable object by setting a present value for the optional
sslHandshakeTimeout attribute. |
ImmutableCloudFoundryClientFactory |
withSslHandshakeTimeout(Optional<? extends java.time.Duration> optional)
Copy the current immutable object by setting an optional value for the
sslHandshakeTimeout attribute. |
ImmutableCloudFoundryClientFactory |
withThreadPoolSize(int value)
Copy the current immutable object by setting a present value for the optional
threadPoolSize attribute. |
ImmutableCloudFoundryClientFactory |
withThreadPoolSize(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
threadPoolSize attribute. |
createClient, createDopplerClient, getOrCreateConnectionContextpublic Optional<java.time.Duration> getSslHandshakeTimeout()
getSslHandshakeTimeout in class CloudFoundryClientFactorysslHandshakeTimeout attributepublic Optional<java.time.Duration> getConnectTimeout()
getConnectTimeout in class CloudFoundryClientFactoryconnectTimeout attributepublic Optional<Integer> getConnectionPoolSize()
getConnectionPoolSize in class CloudFoundryClientFactoryconnectionPoolSize attributepublic Optional<Integer> getThreadPoolSize()
getThreadPoolSize in class CloudFoundryClientFactorythreadPoolSize attributepublic final ImmutableCloudFoundryClientFactory withSslHandshakeTimeout(java.time.Duration value)
sslHandshakeTimeout attribute.value - The value for sslHandshakeTimeoutthis objectpublic final ImmutableCloudFoundryClientFactory 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 ImmutableCloudFoundryClientFactory withConnectTimeout(java.time.Duration value)
connectTimeout attribute.value - The value for connectTimeoutthis objectpublic final ImmutableCloudFoundryClientFactory 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 ImmutableCloudFoundryClientFactory withConnectionPoolSize(int value)
connectionPoolSize attribute.value - The value for connectionPoolSizethis objectpublic final ImmutableCloudFoundryClientFactory 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 ImmutableCloudFoundryClientFactory withThreadPoolSize(int value)
threadPoolSize attribute.value - The value for threadPoolSizethis objectpublic final ImmutableCloudFoundryClientFactory 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 boolean equals(Object another)
ImmutableCloudFoundryClientFactory that have equal attribute values.public int hashCode()
sslHandshakeTimeout, connectTimeout, connectionPoolSize, threadPoolSize.public String toString()
CloudFoundryClientFactory with attribute values.public static ImmutableCloudFoundryClientFactory copyOf(CloudFoundryClientFactory instance)
CloudFoundryClientFactory 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 ImmutableCloudFoundryClientFactory.Builder builder()
ImmutableCloudFoundryClientFactory.
ImmutableCloudFoundryClientFactory.builder()
.sslHandshakeTimeout(java.time.Duration) // optional sslHandshakeTimeout
.connectTimeout(java.time.Duration) // optional connectTimeout
.connectionPoolSize(Integer) // optional connectionPoolSize
.threadPoolSize(Integer) // optional threadPoolSize
.build();
Copyright © 2020 SAP SE. All rights reserved.