Class ImmutableRawCloudProcess

  • All Implemented Interfaces:
    Derivable<CloudProcess>

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

    Use the builder to create immutable instances: ImmutableRawCloudProcess.builder(). Use the static factory method to create immutable instances: ImmutableRawCloudProcess.of().

    • Method Detail

      • getProcess

        public org.cloudfoundry.client.v3.processes.Process getProcess()
        Specified by:
        getProcess in class RawCloudProcess
        Returns:
        The value of the process attribute
      • withProcess

        public final ImmutableRawCloudProcess withProcess​(org.cloudfoundry.client.v3.processes.Process value)
        Copy the current immutable object by setting a value for the process attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for process
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableRawCloudProcess 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: process.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableRawCloudProcess of​(org.cloudfoundry.client.v3.processes.Process process)
        Construct a new immutable RawCloudProcess instance.
        Parameters:
        process - The value for the process attribute
        Returns:
        An immutable RawCloudProcess instance
      • copyOf

        public static ImmutableRawCloudProcess copyOf​(RawCloudProcess instance)
        Creates an immutable copy of a RawCloudProcess 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 RawCloudProcess instance