Class ImmutableRawCloudAsyncJob

  • All Implemented Interfaces:
    Derivable<CloudAsyncJob>

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

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

    • Method Detail

      • getJob

        public org.cloudfoundry.client.v3.jobs.Job getJob()
        Specified by:
        getJob in class RawCloudAsyncJob
        Returns:
        The value of the job attribute
      • withJob

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

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

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

        public static ImmutableRawCloudAsyncJob of​(org.cloudfoundry.client.v3.jobs.Job job)
        Construct a new immutable RawCloudAsyncJob instance.
        Parameters:
        job - The value for the job attribute
        Returns:
        An immutable RawCloudAsyncJob instance
      • copyOf

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