Class ImmutableUpload

  • All Implemented Interfaces:
    Upload

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

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

    • Method Detail

      • getStatus

        public Status getStatus()
        Specified by:
        getStatus in interface Upload
        Returns:
        The value of the status attribute
      • withStatus

        public final ImmutableUpload withStatus​(Status value)
        Copy the current immutable object by setting a value for the status attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for status
        Returns:
        A modified copy of the this object
      • withErrorDetails

        public final ImmutableUpload withErrorDetails​(ErrorDetails value)
        Copy the current immutable object by setting a value for the errorDetails attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for errorDetails (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 ImmutableUpload 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: status, errorDetails.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableUpload copyOf​(Upload instance)
        Creates an immutable copy of a Upload 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 Upload instance
      • builder

        public static ImmutableUpload.Builder builder()
        Creates a builder for ImmutableUpload.
         ImmutableUpload.builder()
            .status(com.sap.cloudfoundry.client.facade.domain.Status) // required status
            .errorDetails(com.sap.cloudfoundry.client.facade.domain.ErrorDetails | null) // nullable errorDetails
            .build();
         
        Returns:
        A new ImmutableUpload builder