Class ImmutableCloudControllerRestClientFactory.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.rest.ImmutableCloudControllerRestClientFactory.Builder
-
- Enclosing class:
- ImmutableCloudControllerRestClientFactory
public static final class ImmutableCloudControllerRestClientFactory.Builder extends Object
Builds instances of typeImmutableCloudControllerRestClientFactory. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
public final ImmutableCloudControllerRestClientFactory.Builder from(CloudControllerRestClientFactory instance)
Fill a builder with attribute values from the providedCloudControllerRestClientFactoryinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
sslHandshakeTimeout
public final ImmutableCloudControllerRestClientFactory.Builder sslHandshakeTimeout(Duration sslHandshakeTimeout)
Initializes the optional valuesslHandshakeTimeoutto sslHandshakeTimeout.- Parameters:
sslHandshakeTimeout- The value for sslHandshakeTimeout- Returns:
thisbuilder for chained invocation
-
sslHandshakeTimeout
public final ImmutableCloudControllerRestClientFactory.Builder sslHandshakeTimeout(Optional<? extends Duration> sslHandshakeTimeout)
Initializes the optional valuesslHandshakeTimeoutto sslHandshakeTimeout.- Parameters:
sslHandshakeTimeout- The value for sslHandshakeTimeout- Returns:
thisbuilder for use in a chained invocation
-
connectTimeout
public final ImmutableCloudControllerRestClientFactory.Builder connectTimeout(Duration connectTimeout)
Initializes the optional valueconnectTimeoutto connectTimeout.- Parameters:
connectTimeout- The value for connectTimeout- Returns:
thisbuilder for chained invocation
-
connectTimeout
public final ImmutableCloudControllerRestClientFactory.Builder connectTimeout(Optional<? extends Duration> connectTimeout)
Initializes the optional valueconnectTimeoutto connectTimeout.- Parameters:
connectTimeout- The value for connectTimeout- Returns:
thisbuilder for use in a chained invocation
-
connectionPoolSize
public final ImmutableCloudControllerRestClientFactory.Builder connectionPoolSize(int connectionPoolSize)
Initializes the optional valueconnectionPoolSizeto connectionPoolSize.- Parameters:
connectionPoolSize- The value for connectionPoolSize- Returns:
thisbuilder for chained invocation
-
connectionPoolSize
public final ImmutableCloudControllerRestClientFactory.Builder connectionPoolSize(Optional<Integer> connectionPoolSize)
Initializes the optional valueconnectionPoolSizeto connectionPoolSize.- Parameters:
connectionPoolSize- The value for connectionPoolSize- Returns:
thisbuilder for use in a chained invocation
-
threadPoolSize
public final ImmutableCloudControllerRestClientFactory.Builder threadPoolSize(int threadPoolSize)
Initializes the optional valuethreadPoolSizeto threadPoolSize.- Parameters:
threadPoolSize- The value for threadPoolSize- Returns:
thisbuilder for chained invocation
-
threadPoolSize
public final ImmutableCloudControllerRestClientFactory.Builder threadPoolSize(Optional<Integer> threadPoolSize)
Initializes the optional valuethreadPoolSizeto threadPoolSize.- Parameters:
threadPoolSize- The value for threadPoolSize- Returns:
thisbuilder for use in a chained invocation
-
shouldTrustSelfSignedCertificates
public final ImmutableCloudControllerRestClientFactory.Builder shouldTrustSelfSignedCertificates(boolean shouldTrustSelfSignedCertificates)
Initializes the value for theshouldTrustSelfSignedCertificatesattribute.If not set, this attribute will have a default value as returned by the initializer of
shouldTrustSelfSignedCertificates.- Parameters:
shouldTrustSelfSignedCertificates- The value for shouldTrustSelfSignedCertificates- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCloudControllerRestClientFactory build()
Builds a newImmutableCloudControllerRestClientFactory.- Returns:
- An immutable instance of CloudControllerRestClientFactory
- Throws:
IllegalStateException- if any required attributes are missing
-
-