public static final class CancelApplicationTaskResponse.Builder extends Object
CancelApplicationTaskResponse.
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 |
|---|---|
CancelApplicationTaskResponse |
build()
Builds a new
CancelApplicationTaskResponse. |
CancelApplicationTaskResponse.Builder |
command(String command)
Initializes the value for the
command attribute. |
CancelApplicationTaskResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
CancelApplicationTaskResponse.Builder |
environmentVariable(Map.Entry<String,? extends String> entry)
Put one entry to the
environmentVariables map. |
CancelApplicationTaskResponse.Builder |
environmentVariable(String key,
String value)
Put one entry to the
environmentVariables map. |
CancelApplicationTaskResponse.Builder |
environmentVariables(Map<String,? extends String> environmentVariables)
Sets or replaces all mappings from the specified map as entries for the
environmentVariables map. |
CancelApplicationTaskResponse.Builder |
from(CancelApplicationTaskResponse instance)
Fill a builder with attribute values from the provided
CancelApplicationTaskResponse instance. |
CancelApplicationTaskResponse.Builder |
from(Task instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.tasks.Task instance. |
CancelApplicationTaskResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
CancelApplicationTaskResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
CancelApplicationTaskResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
CancelApplicationTaskResponse.Builder |
links(Map<String,? extends Link> links)
Sets or replaces all mappings from the specified map as entries for the
links map. |
CancelApplicationTaskResponse.Builder |
memoryInMb(Integer memoryInMb)
Initializes the value for the
memoryInMb attribute. |
CancelApplicationTaskResponse.Builder |
name(String name)
Initializes the value for the
name attribute. |
CancelApplicationTaskResponse.Builder |
putAllEnvironmentVariables(Map<String,? extends String> environmentVariables)
Put all mappings from the specified map as entries to
environmentVariables map. |
CancelApplicationTaskResponse.Builder |
putAllLinks(Map<String,? extends Link> links)
Put all mappings from the specified map as entries to
links map. |
CancelApplicationTaskResponse.Builder |
result(Result result)
Initializes the value for the
result attribute. |
CancelApplicationTaskResponse.Builder |
state(State state)
Initializes the value for the
state attribute. |
CancelApplicationTaskResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final CancelApplicationTaskResponse.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 CancelApplicationTaskResponse.Builder from(CancelApplicationTaskResponse instance)
CancelApplicationTaskResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder command(String command)
command attribute.command - The value for command (can be null)this builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAt (can be null)this builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder environmentVariable(String key, String value)
environmentVariables map.key - The key in the environmentVariables mapvalue - The associated value in the environmentVariables mapthis builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder environmentVariable(Map.Entry<String,? extends String> entry)
environmentVariables map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder environmentVariables(Map<String,? extends String> environmentVariables)
environmentVariables map. Nulls are not permitted as keys or values, but parameter itself can be nullenvironmentVariables - The entries that will be added to the environmentVariables mapthis builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder putAllEnvironmentVariables(Map<String,? extends String> environmentVariables)
environmentVariables map. Nulls are not permittedenvironmentVariables - The entries that will be added to the environmentVariables mapthis builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder id(String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final CancelApplicationTaskResponse.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 CancelApplicationTaskResponse.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 CancelApplicationTaskResponse.Builder links(Map<String,? extends Link> links)
links map. Nulls are not permitted as keys or values, but parameter itself can be nulllinks - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder putAllLinks(Map<String,? extends Link> links)
links map. Nulls are not permittedlinks - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder memoryInMb(Integer memoryInMb)
memoryInMb attribute.memoryInMb - The value for memoryInMb (can be null)this builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder result(Result result)
result attribute.result - The value for result (can be null)this builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder state(State state)
state attribute.state - The value for state (can be null)this builder for use in a chained invocationpublic final CancelApplicationTaskResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic CancelApplicationTaskResponse build()
CancelApplicationTaskResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.