@Generated(value="org.immutables.processor.ProxyProcessor") public final class TaskResource extends Task
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskResource.Builder
Builds instances of type
TaskResource. |
| Modifier and Type | Method and Description |
|---|---|
static TaskResource.Builder |
builder()
Creates a builder for
TaskResource. |
boolean |
equals(Object another)
This instance is equal to all instances of
TaskResource that have equal attribute values. |
String |
getCommand()
The command that will be executed
|
String |
getCreatedAt()
When the resource was created
|
Integer |
getDiskInMb()
The amount of disk to allocate for the task in MB
|
String |
getDropletId()
The id of the droplet that will be used to run the command
|
String |
getId()
The resource's id
|
Map<String,Link> |
getLinks()
Links to related resources and actions for the resource
|
Integer |
getMemoryInMb()
The amount of memory to allocate for the task in MB
|
Metadata |
getMetadata()
The metadata
|
String |
getName()
The task's name
|
Result |
getResult()
The task result
|
Integer |
getSequenceId()
The user-facing id of the task
|
TaskState |
getState()
The state of the task
|
TaskRelationships |
getTaskRelationships()
The task relationships
|
String |
getUpdatedAt()
When the resource was last updated
|
int |
hashCode()
Computes a hash code from attributes:
createdAt, id, links, updatedAt, command, diskInMb, dropletId, memoryInMb, metadata, name, result, sequenceId, state, taskRelationships. |
String |
toString()
Prints the immutable value
TaskResource with attribute values. |
public String getCreatedAt()
getCreatedAt in class Resourcepublic String getUpdatedAt()
getUpdatedAt in class Resourcepublic String getCommand()
getCommand in class Taskpublic Integer getDiskInMb()
getDiskInMb in class Taskpublic String getDropletId()
getDropletId in class Taskpublic Integer getMemoryInMb()
getMemoryInMb in class Taskpublic Metadata getMetadata()
getMetadata in class Taskpublic Integer getSequenceId()
getSequenceId in class Taskpublic TaskRelationships getTaskRelationships()
getTaskRelationships in class Taskpublic boolean equals(Object another)
TaskResource that have equal attribute values.public int hashCode()
createdAt, id, links, updatedAt, command, diskInMb, dropletId, memoryInMb, metadata, name, result, sequenceId, state, taskRelationships.public String toString()
TaskResource with attribute values.public static TaskResource.Builder builder()
TaskResource.
TaskResource.builder()
.createdAt(String) // required createdAt
.id(String) // required id
.link|putAllLinks(String => Link) // links mappings
.updatedAt(String | null) // nullable updatedAt
.command(String | null) // nullable command
.diskInMb(Integer) // required diskInMb
.dropletId(String) // required dropletId
.memoryInMb(Integer) // required memoryInMb
.metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable metadata
.name(String) // required name
.result(org.cloudfoundry.client.v3.tasks.Result | null) // nullable result
.sequenceId(Integer) // required sequenceId
.state(org.cloudfoundry.client.v3.tasks.TaskState) // required state
.taskRelationships(org.cloudfoundry.client.v3.tasks.TaskRelationships | null) // nullable taskRelationships
.build();
Copyright © 2020. All rights reserved.