Class ImmutableCloudMetadata

  • All Implemented Interfaces:
    CloudMetadata

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableCloudMetadata
    extends Object
    implements CloudMetadata
    Immutable implementation of CloudMetadata.

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

    • Method Detail

      • getGuid

        public UUID getGuid()
        Specified by:
        getGuid in interface CloudMetadata
        Returns:
        The value of the guid attribute
      • getCreatedAt

        public Date getCreatedAt()
        Specified by:
        getCreatedAt in interface CloudMetadata
        Returns:
        The value of the createdAt attribute
      • getUpdatedAt

        public Date getUpdatedAt()
        Specified by:
        getUpdatedAt in interface CloudMetadata
        Returns:
        The value of the updatedAt attribute
      • withGuid

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

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

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

        public final ImmutableCloudMetadata withUrl​(String value)
        Copy the current immutable object by setting a value for the url attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for url (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 ImmutableCloudMetadata 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: guid, createdAt, updatedAt, url.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableCloudMetadata of​(UUID guid)
        Construct a new immutable CloudMetadata instance.
        Parameters:
        guid - The value for the guid attribute
        Returns:
        An immutable CloudMetadata instance
      • copyOf

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