@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudTask extends Object implements CloudTask
CloudTask.
Use the builder to create immutable instances:
ImmutableCloudTask.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudTask.Builder
Builds instances of type
ImmutableCloudTask. |
static class |
ImmutableCloudTask.ImmutableLimits
Immutable implementation of
CloudTask.Limits. |
static class |
ImmutableCloudTask.ImmutableResult
Immutable implementation of
CloudTask.Result. |
CloudTask.Limits, CloudTask.Result, CloudTask.State| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudTask.Builder |
builder()
Creates a builder for
ImmutableCloudTask. |
static ImmutableCloudTask |
copyOf(CloudTask instance)
Creates an immutable copy of a
CloudTask value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudTask that have equal attribute values. |
String |
getCommand() |
CloudTask.Limits |
getLimits() |
CloudMetadata |
getMetadata() |
String |
getName() |
CloudTask.Result |
getResult() |
CloudTask.State |
getState() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
int |
hashCode()
Computes a hash code from attributes:
name, metadata, v3Metadata, command, limits, result, state. |
String |
toString()
Prints the immutable value
CloudTask with attribute values. |
ImmutableCloudTask |
withCommand(String value)
Copy the current immutable object by setting a value for the
command attribute. |
ImmutableCloudTask |
withLimits(CloudTask.Limits value)
Copy the current immutable object by setting a value for the
limits attribute. |
ImmutableCloudTask |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudTask |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudTask |
withResult(CloudTask.Result value)
Copy the current immutable object by setting a value for the
result attribute. |
ImmutableCloudTask |
withState(CloudTask.State value)
Copy the current immutable object by setting a value for the
state attribute. |
ImmutableCloudTask |
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 String getCommand()
getCommand in interface CloudTaskcommand attributepublic CloudTask.Limits getLimits()
public CloudTask.Result getResult()
public CloudTask.State getState()
public final ImmutableCloudTask 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 ImmutableCloudTask 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 ImmutableCloudTask 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 ImmutableCloudTask withCommand(String value)
command attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for command (can be null)this objectpublic final ImmutableCloudTask withLimits(CloudTask.Limits value)
limits attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for limits (can be null)this objectpublic final ImmutableCloudTask withResult(CloudTask.Result value)
result attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for result (can be null)this objectpublic final ImmutableCloudTask withState(CloudTask.State value)
state attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for state (can be null)this objectpublic boolean equals(Object another)
ImmutableCloudTask that have equal attribute values.public int hashCode()
name, metadata, v3Metadata, command, limits, result, state.public String toString()
CloudTask with attribute values.public static ImmutableCloudTask copyOf(CloudTask instance)
CloudTask 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 ImmutableCloudTask.Builder builder()
ImmutableCloudTask.
ImmutableCloudTask.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
.command(String | null) // nullable command
.limits(org.cloudfoundry.client.lib.domain.CloudTask.Limits | null) // nullable limits
.result(org.cloudfoundry.client.lib.domain.CloudTask.Result | null) // nullable result
.state(org.cloudfoundry.client.lib.domain.CloudTask.State | null) // nullable state
.build();
Copyright © 2020 SAP SE. All rights reserved.