Class ImmutableCloudControllerRestClientFactory
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.rest.CloudControllerRestClientFactory
-
- com.sap.cloudfoundry.client.facade.rest.ImmutableCloudControllerRestClientFactory
-
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudControllerRestClientFactory extends CloudControllerRestClientFactory
Immutable implementation ofCloudControllerRestClientFactory.Use the builder to create immutable instances:
ImmutableCloudControllerRestClientFactory.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudControllerRestClientFactory.BuilderBuilds instances of typeImmutableCloudControllerRestClientFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudControllerRestClientFactory.Builderbuilder()Creates a builder forImmutableCloudControllerRestClientFactory.static ImmutableCloudControllerRestClientFactorycopyOf(CloudControllerRestClientFactory instance)Creates an immutable copy of aCloudControllerRestClientFactoryvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudControllerRestClientFactorythat have equal attribute values.CloudFoundryClientFactorygetCloudFoundryClientFactory()Optional<Integer>getConnectionPoolSize()Optional<Duration>getConnectTimeout()Optional<Duration>getResponseTimeout()Optional<Duration>getSslHandshakeTimeout()Optional<Integer>getThreadPoolSize()inthashCode()Computes a hash code from attributes:sslHandshakeTimeout,connectTimeout,connectionPoolSize,threadPoolSize,responseTimeout,shouldTrustSelfSignedCertificates,cloudFoundryClientFactory.booleanshouldTrustSelfSignedCertificates()StringtoString()Prints the immutable valueCloudControllerRestClientFactorywith attribute values.ImmutableCloudControllerRestClientFactorywithConnectionPoolSize(int value)Copy the current immutable object by setting a present value for the optionalconnectionPoolSizeattribute.ImmutableCloudControllerRestClientFactorywithConnectionPoolSize(Optional<Integer> optional)Copy the current immutable object by setting an optional value for theconnectionPoolSizeattribute.ImmutableCloudControllerRestClientFactorywithConnectTimeout(Duration value)Copy the current immutable object by setting a present value for the optionalconnectTimeoutattribute.ImmutableCloudControllerRestClientFactorywithConnectTimeout(Optional<? extends Duration> optional)Copy the current immutable object by setting an optional value for theconnectTimeoutattribute.ImmutableCloudControllerRestClientFactorywithResponseTimeout(Duration value)Copy the current immutable object by setting a present value for the optionalresponseTimeoutattribute.ImmutableCloudControllerRestClientFactorywithResponseTimeout(Optional<? extends Duration> optional)Copy the current immutable object by setting an optional value for theresponseTimeoutattribute.ImmutableCloudControllerRestClientFactorywithShouldTrustSelfSignedCertificates(boolean value)Copy the current immutable object by setting a value for theshouldTrustSelfSignedCertificatesattribute.ImmutableCloudControllerRestClientFactorywithSslHandshakeTimeout(Duration value)Copy the current immutable object by setting a present value for the optionalsslHandshakeTimeoutattribute.ImmutableCloudControllerRestClientFactorywithSslHandshakeTimeout(Optional<? extends Duration> optional)Copy the current immutable object by setting an optional value for thesslHandshakeTimeoutattribute.ImmutableCloudControllerRestClientFactorywithThreadPoolSize(int value)Copy the current immutable object by setting a present value for the optionalthreadPoolSizeattribute.ImmutableCloudControllerRestClientFactorywithThreadPoolSize(Optional<Integer> optional)Copy the current immutable object by setting an optional value for thethreadPoolSizeattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.rest.CloudControllerRestClientFactory
createClient, createClient, createClient
-
-
-
-
Method Detail
-
getSslHandshakeTimeout
public Optional<Duration> getSslHandshakeTimeout()
- Specified by:
getSslHandshakeTimeoutin classCloudControllerRestClientFactory- Returns:
- The value of the
sslHandshakeTimeoutattribute
-
getConnectTimeout
public Optional<Duration> getConnectTimeout()
- Specified by:
getConnectTimeoutin classCloudControllerRestClientFactory- Returns:
- The value of the
connectTimeoutattribute
-
getConnectionPoolSize
public Optional<Integer> getConnectionPoolSize()
- Specified by:
getConnectionPoolSizein classCloudControllerRestClientFactory- Returns:
- The value of the
connectionPoolSizeattribute
-
getThreadPoolSize
public Optional<Integer> getThreadPoolSize()
- Specified by:
getThreadPoolSizein classCloudControllerRestClientFactory- Returns:
- The value of the
threadPoolSizeattribute
-
getResponseTimeout
public Optional<Duration> getResponseTimeout()
- Specified by:
getResponseTimeoutin classCloudControllerRestClientFactory- Returns:
- The value of the
responseTimeoutattribute
-
shouldTrustSelfSignedCertificates
public boolean shouldTrustSelfSignedCertificates()
- Overrides:
shouldTrustSelfSignedCertificatesin classCloudControllerRestClientFactory- Returns:
- The value of the
shouldTrustSelfSignedCertificatesattribute
-
getCloudFoundryClientFactory
public CloudFoundryClientFactory getCloudFoundryClientFactory()
- Overrides:
getCloudFoundryClientFactoryin classCloudControllerRestClientFactory- Returns:
- The computed-at-construction value of the
cloudFoundryClientFactoryattribute
-
withSslHandshakeTimeout
public final ImmutableCloudControllerRestClientFactory withSslHandshakeTimeout(Duration value)
Copy the current immutable object by setting a present value for the optionalsslHandshakeTimeoutattribute.- Parameters:
value- The value for sslHandshakeTimeout- Returns:
- A modified copy of
thisobject
-
withSslHandshakeTimeout
public final ImmutableCloudControllerRestClientFactory withSslHandshakeTimeout(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for thesslHandshakeTimeoutattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sslHandshakeTimeout- Returns:
- A modified copy of
thisobject
-
withConnectTimeout
public final ImmutableCloudControllerRestClientFactory withConnectTimeout(Duration value)
Copy the current immutable object by setting a present value for the optionalconnectTimeoutattribute.- Parameters:
value- The value for connectTimeout- Returns:
- A modified copy of
thisobject
-
withConnectTimeout
public final ImmutableCloudControllerRestClientFactory withConnectTimeout(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for theconnectTimeoutattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for connectTimeout- Returns:
- A modified copy of
thisobject
-
withConnectionPoolSize
public final ImmutableCloudControllerRestClientFactory withConnectionPoolSize(int value)
Copy the current immutable object by setting a present value for the optionalconnectionPoolSizeattribute.- Parameters:
value- The value for connectionPoolSize- Returns:
- A modified copy of
thisobject
-
withConnectionPoolSize
public final ImmutableCloudControllerRestClientFactory withConnectionPoolSize(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for theconnectionPoolSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for connectionPoolSize- Returns:
- A modified copy of
thisobject
-
withThreadPoolSize
public final ImmutableCloudControllerRestClientFactory withThreadPoolSize(int value)
Copy the current immutable object by setting a present value for the optionalthreadPoolSizeattribute.- Parameters:
value- The value for threadPoolSize- Returns:
- A modified copy of
thisobject
-
withThreadPoolSize
public final ImmutableCloudControllerRestClientFactory withThreadPoolSize(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for thethreadPoolSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for threadPoolSize- Returns:
- A modified copy of
thisobject
-
withResponseTimeout
public final ImmutableCloudControllerRestClientFactory withResponseTimeout(Duration value)
Copy the current immutable object by setting a present value for the optionalresponseTimeoutattribute.- Parameters:
value- The value for responseTimeout- Returns:
- A modified copy of
thisobject
-
withResponseTimeout
public final ImmutableCloudControllerRestClientFactory withResponseTimeout(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for theresponseTimeoutattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for responseTimeout- Returns:
- A modified copy of
thisobject
-
withShouldTrustSelfSignedCertificates
public final ImmutableCloudControllerRestClientFactory withShouldTrustSelfSignedCertificates(boolean value)
Copy the current immutable object by setting a value for theshouldTrustSelfSignedCertificatesattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for shouldTrustSelfSignedCertificates- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudControllerRestClientFactorythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:sslHandshakeTimeout,connectTimeout,connectionPoolSize,threadPoolSize,responseTimeout,shouldTrustSelfSignedCertificates,cloudFoundryClientFactory.
-
toString
public String toString()
Prints the immutable valueCloudControllerRestClientFactorywith attribute values.
-
copyOf
public static ImmutableCloudControllerRestClientFactory copyOf(CloudControllerRestClientFactory instance)
Creates an immutable copy of aCloudControllerRestClientFactoryvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable CloudControllerRestClientFactory instance
-
builder
public static ImmutableCloudControllerRestClientFactory.Builder builder()
Creates a builder forImmutableCloudControllerRestClientFactory.ImmutableCloudControllerRestClientFactory.builder() .sslHandshakeTimeout(java.time.Duration) // optionalsslHandshakeTimeout.connectTimeout(java.time.Duration) // optionalconnectTimeout.connectionPoolSize(Integer) // optionalconnectionPoolSize.threadPoolSize(Integer) // optionalthreadPoolSize.responseTimeout(java.time.Duration) // optionalresponseTimeout.shouldTrustSelfSignedCertificates(boolean) // optionalshouldTrustSelfSignedCertificates.build();- Returns:
- A new ImmutableCloudControllerRestClientFactory builder
-
-