public static final class GetTaskResponse.Builder extends Object
GetTaskResponse.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
GetTaskResponse |
build()
Builds a new
GetTaskResponse. |
GetTaskResponse.Builder |
command(String command)
Initializes the value for the
command attribute. |
GetTaskResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
GetTaskResponse.Builder |
diskInMb(Integer diskInMb)
Initializes the value for the
diskInMb attribute. |
GetTaskResponse.Builder |
dropletId(String dropletId)
Initializes the value for the
dropletId attribute. |
GetTaskResponse.Builder |
from(org.cloudfoundry.client.v3.tasks._GetTaskResponse instance)
Copy abstract value type
_GetTaskResponse instance into builder. |
GetTaskResponse.Builder |
from(GetTaskResponse instance)
Fill a builder with attribute values from the provided
GetTaskResponse instance. |
GetTaskResponse.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.Resource instance. |
GetTaskResponse.Builder |
from(Task instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.tasks.Task instance. |
GetTaskResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
GetTaskResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
GetTaskResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
GetTaskResponse.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
GetTaskResponse.Builder |
memoryInMb(Integer memoryInMb)
Initializes the value for the
memoryInMb attribute. |
GetTaskResponse.Builder |
metadata(Metadata metadata)
Initializes the value for the
metadata attribute. |
GetTaskResponse.Builder |
name(String name)
Initializes the value for the
name attribute. |
GetTaskResponse.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
GetTaskResponse.Builder |
result(Result result)
Initializes the value for the
result attribute. |
GetTaskResponse.Builder |
sequenceId(Integer sequenceId)
Initializes the value for the
sequenceId attribute. |
GetTaskResponse.Builder |
state(TaskState state)
Initializes the value for the
state attribute. |
GetTaskResponse.Builder |
taskRelationships(TaskRelationships taskRelationships)
Initializes the value for the
taskRelationships attribute. |
GetTaskResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final GetTaskResponse.Builder from(Resource instance)
org.cloudfoundry.client.v3.Resource instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetTaskResponse.Builder from(Task instance)
org.cloudfoundry.client.v3.tasks.Task instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetTaskResponse.Builder from(GetTaskResponse instance)
GetTaskResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetTaskResponse.Builder from(org.cloudfoundry.client.v3.tasks._GetTaskResponse instance)
_GetTaskResponse instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetTaskResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAtthis builder for use in a chained invocationpublic final GetTaskResponse.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final GetTaskResponse.Builder link(String key, Link value)
links map.key - The key in the links mapvalue - The associated value in the links mapthis builder for use in a chained invocationpublic final GetTaskResponse.Builder link(Map.Entry<String,? extends Link> entry)
links map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final GetTaskResponse.Builder links(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final GetTaskResponse.Builder putAllLinks(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final GetTaskResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic final GetTaskResponse.Builder command(String command)
command attribute.command - The value for command (can be null)this builder for use in a chained invocationpublic final GetTaskResponse.Builder diskInMb(Integer diskInMb)
diskInMb attribute.diskInMb - The value for diskInMbthis builder for use in a chained invocationpublic final GetTaskResponse.Builder dropletId(String dropletId)
dropletId attribute.dropletId - The value for dropletIdthis builder for use in a chained invocationpublic final GetTaskResponse.Builder memoryInMb(Integer memoryInMb)
memoryInMb attribute.memoryInMb - The value for memoryInMbthis builder for use in a chained invocationpublic final GetTaskResponse.Builder metadata(Metadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final GetTaskResponse.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final GetTaskResponse.Builder result(Result result)
result attribute.result - The value for result (can be null)this builder for use in a chained invocationpublic final GetTaskResponse.Builder sequenceId(Integer sequenceId)
sequenceId attribute.sequenceId - The value for sequenceIdthis builder for use in a chained invocationpublic final GetTaskResponse.Builder state(TaskState state)
state attribute.state - The value for statethis builder for use in a chained invocationpublic final GetTaskResponse.Builder taskRelationships(TaskRelationships taskRelationships)
taskRelationships attribute.taskRelationships - The value for taskRelationships (can be null)this builder for use in a chained invocationpublic GetTaskResponse build()
GetTaskResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.