| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableUpload.Builder
Builds instances of type
ImmutableUpload. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableUpload.Builder |
builder()
Creates a builder for
ImmutableUpload. |
static ImmutableUpload |
copyOf(Upload instance)
Creates an immutable copy of a
Upload value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableUpload that have equal attribute values. |
ErrorDetails |
getErrorDetails() |
Status |
getStatus() |
int |
hashCode()
Computes a hash code from attributes:
status, errorDetails. |
String |
toString()
Prints the immutable value
Upload with attribute values. |
ImmutableUpload |
withErrorDetails(ErrorDetails value)
Copy the current immutable object by setting a value for the
errorDetails attribute. |
ImmutableUpload |
withStatus(Status value)
Copy the current immutable object by setting a value for the
status attribute. |
public Status getStatus()
public ErrorDetails getErrorDetails()
getErrorDetails in interface UploaderrorDetails attributepublic final ImmutableUpload withStatus(Status value)
status attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for statusthis objectpublic final ImmutableUpload withErrorDetails(ErrorDetails value)
errorDetails attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for errorDetails (can be null)this objectpublic boolean equals(Object another)
ImmutableUpload that have equal attribute values.public int hashCode()
status, errorDetails.public String toString()
Upload with attribute values.public static ImmutableUpload copyOf(Upload instance)
Upload value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableUpload.Builder builder()
ImmutableUpload.
ImmutableUpload.builder()
.status(org.cloudfoundry.client.lib.domain.Status) // required status
.errorDetails(org.cloudfoundry.client.lib.domain.ErrorDetails | null) // nullable errorDetails
.build();
Copyright © 2020 SAP SE. All rights reserved.