Class ImmutableCloudFoundryClientFactory

    • Method Detail

      • withSslHandshakeTimeout

        public final ImmutableCloudFoundryClientFactory withSslHandshakeTimeout​(Duration value)
        Copy the current immutable object by setting a present value for the optional sslHandshakeTimeout attribute.
        Parameters:
        value - The value for sslHandshakeTimeout
        Returns:
        A modified copy of this object
      • withSslHandshakeTimeout

        public final ImmutableCloudFoundryClientFactory withSslHandshakeTimeout​(Optional<? extends Duration> optional)
        Copy the current immutable object by setting an optional value for the sslHandshakeTimeout attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for sslHandshakeTimeout
        Returns:
        A modified copy of this object
      • withConnectTimeout

        public final ImmutableCloudFoundryClientFactory withConnectTimeout​(Duration value)
        Copy the current immutable object by setting a present value for the optional connectTimeout attribute.
        Parameters:
        value - The value for connectTimeout
        Returns:
        A modified copy of this object
      • withConnectTimeout

        public final ImmutableCloudFoundryClientFactory withConnectTimeout​(Optional<? extends Duration> optional)
        Copy the current immutable object by setting an optional value for the connectTimeout attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for connectTimeout
        Returns:
        A modified copy of this object
      • withConnectionPoolSize

        public final ImmutableCloudFoundryClientFactory withConnectionPoolSize​(int value)
        Copy the current immutable object by setting a present value for the optional connectionPoolSize attribute.
        Parameters:
        value - The value for connectionPoolSize
        Returns:
        A modified copy of this object
      • withConnectionPoolSize

        public final ImmutableCloudFoundryClientFactory withConnectionPoolSize​(Optional<Integer> optional)
        Copy the current immutable object by setting an optional value for the connectionPoolSize attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for connectionPoolSize
        Returns:
        A modified copy of this object
      • withThreadPoolSize

        public final ImmutableCloudFoundryClientFactory withThreadPoolSize​(int value)
        Copy the current immutable object by setting a present value for the optional threadPoolSize attribute.
        Parameters:
        value - The value for threadPoolSize
        Returns:
        A modified copy of this object
      • withThreadPoolSize

        public final ImmutableCloudFoundryClientFactory withThreadPoolSize​(Optional<Integer> optional)
        Copy the current immutable object by setting an optional value for the threadPoolSize attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for threadPoolSize
        Returns:
        A modified copy of this object
      • withResponseTimeout

        public final ImmutableCloudFoundryClientFactory withResponseTimeout​(Duration value)
        Copy the current immutable object by setting a present value for the optional responseTimeout attribute.
        Parameters:
        value - The value for responseTimeout
        Returns:
        A modified copy of this object
      • withResponseTimeout

        public final ImmutableCloudFoundryClientFactory withResponseTimeout​(Optional<? extends Duration> optional)
        Copy the current immutable object by setting an optional value for the responseTimeout attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for responseTimeout
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableCloudFoundryClientFactory that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: sslHandshakeTimeout, connectTimeout, connectionPoolSize, threadPoolSize, responseTimeout.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value CloudFoundryClientFactory with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value