Class ImmutableCloudProcess

  • All Implemented Interfaces:
    Derivable<CloudProcess>

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableCloudProcess
    extends CloudProcess
    Immutable implementation of CloudProcess.

    Use the builder to create immutable instances: ImmutableCloudProcess.builder().

    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in class CloudEntity
        Returns:
        The value of the name attribute
      • getV3Metadata

        public org.cloudfoundry.client.v3.Metadata getV3Metadata()
        Specified by:
        getV3Metadata in class CloudEntity
        Returns:
        The value of the v3Metadata attribute
      • withName

        public final ImmutableCloudProcess withName​(String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name (can be null)
        Returns:
        A modified copy of the this object
      • withMetadata

        public final ImmutableCloudProcess withMetadata​(CloudMetadata value)
        Copy the current immutable object by setting a value for the metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for metadata (can be null)
        Returns:
        A modified copy of the this object
      • withV3Metadata

        public final ImmutableCloudProcess withV3Metadata​(org.cloudfoundry.client.v3.Metadata value)
        Copy the current immutable object by setting a value for the v3Metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for v3Metadata (can be null)
        Returns:
        A modified copy of the this object
      • withCommand

        public final ImmutableCloudProcess withCommand​(String value)
        Copy the current immutable object by setting a value for the command attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for command
        Returns:
        A modified copy of the this object
      • withDiskInMb

        public final ImmutableCloudProcess withDiskInMb​(Integer value)
        Copy the current immutable object by setting a value for the diskInMb attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for diskInMb
        Returns:
        A modified copy of the this object
      • withInstances

        public final ImmutableCloudProcess withInstances​(Integer value)
        Copy the current immutable object by setting a value for the instances attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for instances
        Returns:
        A modified copy of the this object
      • withMemoryInMb

        public final ImmutableCloudProcess withMemoryInMb​(Integer value)
        Copy the current immutable object by setting a value for the memoryInMb attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for memoryInMb
        Returns:
        A modified copy of the this object
      • withHealthCheckType

        public final ImmutableCloudProcess withHealthCheckType​(HealthCheckType value)
        Copy the current immutable object by setting a value for the healthCheckType attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for healthCheckType
        Returns:
        A modified copy of the this object
      • withHealthCheckHttpEndpoint

        public final ImmutableCloudProcess withHealthCheckHttpEndpoint​(String value)
        Copy the current immutable object by setting a value for the healthCheckHttpEndpoint attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for healthCheckHttpEndpoint (can be null)
        Returns:
        A modified copy of the this object
      • withHealthCheckInvocationTimeout

        public final ImmutableCloudProcess withHealthCheckInvocationTimeout​(Integer value)
        Copy the current immutable object by setting a value for the healthCheckInvocationTimeout attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for healthCheckInvocationTimeout (can be null)
        Returns:
        A modified copy of the this object
      • withHealthCheckTimeout

        public final ImmutableCloudProcess withHealthCheckTimeout​(Integer value)
        Copy the current immutable object by setting a value for the healthCheckTimeout attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for healthCheckTimeout (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableCloudProcess 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: name, metadata, v3Metadata, command, diskInMb, instances, memoryInMb, healthCheckType, healthCheckHttpEndpoint, healthCheckInvocationTimeout, healthCheckTimeout.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableCloudProcess copyOf​(CloudProcess instance)
        Creates an immutable copy of a CloudProcess value. 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 CloudProcess instance