@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudJob extends Object implements CloudJob
CloudJob.
Use the builder to create immutable instances:
ImmutableCloudJob.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudJob.Builder
Builds instances of type
ImmutableCloudJob. |
CloudJob.Status| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudJob.Builder |
builder()
Creates a builder for
ImmutableCloudJob. |
static ImmutableCloudJob |
copyOf(CloudJob instance)
Creates an immutable copy of a
CloudJob value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudJob that have equal attribute values. |
ErrorDetails |
getErrorDetails() |
CloudMetadata |
getMetadata() |
String |
getName() |
CloudJob.Status |
getStatus() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
int |
hashCode()
Computes a hash code from attributes:
name, metadata, v3Metadata, status, errorDetails. |
String |
toString()
Prints the immutable value
CloudJob with attribute values. |
ImmutableCloudJob |
withErrorDetails(ErrorDetails value)
Copy the current immutable object by setting a value for the
errorDetails attribute. |
ImmutableCloudJob |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudJob |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudJob |
withStatus(CloudJob.Status value)
Copy the current immutable object by setting a value for the
status attribute. |
ImmutableCloudJob |
withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for the
v3Metadata attribute. |
public String getName()
getName in interface CloudEntityname attributepublic CloudMetadata getMetadata()
getMetadata in interface CloudEntitymetadata attributepublic org.cloudfoundry.client.v3.Metadata getV3Metadata()
getV3Metadata in interface CloudEntityv3Metadata attributepublic CloudJob.Status getStatus()
public ErrorDetails getErrorDetails()
getErrorDetails in interface CloudJoberrorDetails attributepublic final ImmutableCloudJob withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for name (can be null)this objectpublic final ImmutableCloudJob withMetadata(CloudMetadata value)
metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for metadata (can be null)this objectpublic final ImmutableCloudJob withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
v3Metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for v3Metadata (can be null)this objectpublic final ImmutableCloudJob withStatus(CloudJob.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 status (can be null)this objectpublic final ImmutableCloudJob 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)
ImmutableCloudJob that have equal attribute values.public int hashCode()
name, metadata, v3Metadata, status, errorDetails.public String toString()
CloudJob with attribute values.public static ImmutableCloudJob copyOf(CloudJob instance)
CloudJob 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 ImmutableCloudJob.Builder builder()
ImmutableCloudJob.
ImmutableCloudJob.builder()
.name(String | null) // nullable name
.metadata(org.cloudfoundry.client.lib.domain.CloudMetadata | null) // nullable metadata
.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
.status(org.cloudfoundry.client.lib.domain.CloudJob.Status | null) // nullable status
.errorDetails(org.cloudfoundry.client.lib.domain.ErrorDetails | null) // nullable errorDetails
.build();
Copyright © 2020 SAP SE. All rights reserved.