Class ImmutableUpload
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableUpload
-
- All Implemented Interfaces:
Upload
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableUpload extends Object implements Upload
Immutable implementation ofUpload.Use the builder to create immutable instances:
ImmutableUpload.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUpload.BuilderBuilds instances of typeImmutableUpload.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUpload.Builderbuilder()Creates a builder forImmutableUpload.static ImmutableUploadcopyOf(Upload instance)Creates an immutable copy of aUploadvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUploadthat have equal attribute values.ErrorDetailsgetErrorDetails()StatusgetStatus()inthashCode()Computes a hash code from attributes:status,errorDetails.StringtoString()Prints the immutable valueUploadwith attribute values.ImmutableUploadwithErrorDetails(ErrorDetails value)Copy the current immutable object by setting a value for theerrorDetailsattribute.ImmutableUploadwithStatus(Status value)Copy the current immutable object by setting a value for thestatusattribute.
-
-
-
Method Detail
-
getStatus
public Status getStatus()
-
getErrorDetails
public ErrorDetails getErrorDetails()
- Specified by:
getErrorDetailsin interfaceUpload- Returns:
- The value of the
errorDetailsattribute
-
withStatus
public final ImmutableUpload withStatus(Status value)
Copy the current immutable object by setting a value for thestatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status- Returns:
- A modified copy of the
thisobject
-
withErrorDetails
public final ImmutableUpload withErrorDetails(ErrorDetails value)
Copy the current immutable object by setting a value for theerrorDetailsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for errorDetails (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableUploadthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:status,errorDetails.
-
toString
public String toString()
Prints the immutable valueUploadwith attribute values.
-
copyOf
public static ImmutableUpload copyOf(Upload instance)
Creates an immutable copy of aUploadvalue. 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 forImmutableUpload.ImmutableUpload.builder() .status(com.sap.cloudfoundry.client.facade.domain.Status) // requiredstatus.errorDetails(com.sap.cloudfoundry.client.facade.domain.ErrorDetails | null) // nullableerrorDetails.build();- Returns:
- A new ImmutableUpload builder
-
-