public static final class UpdateProcessResponse.Builder extends Object
UpdateProcessResponse.
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 |
|---|---|
UpdateProcessResponse.Builder |
addAllPorts(Iterable<Integer> elements)
Adds elements to
ports list. |
UpdateProcessResponse |
build()
Builds a new
UpdateProcessResponse. |
UpdateProcessResponse.Builder |
command(String command)
Initializes the value for the
command attribute. |
UpdateProcessResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
UpdateProcessResponse.Builder |
diskInMb(Integer diskInMb)
Initializes the value for the
diskInMb attribute. |
UpdateProcessResponse.Builder |
from(Process instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.processes.Process instance. |
UpdateProcessResponse.Builder |
from(UpdateProcessResponse instance)
Fill a builder with attribute values from the provided
UpdateProcessResponse instance. |
UpdateProcessResponse.Builder |
healthCheck(HealthCheck healthCheck)
Initializes the value for the
healthCheck attribute. |
UpdateProcessResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
UpdateProcessResponse.Builder |
instances(Integer instances)
Initializes the value for the
instances attribute. |
UpdateProcessResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
UpdateProcessResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
UpdateProcessResponse.Builder |
links(Map<String,? extends Link> links)
Sets or replaces all mappings from the specified map as entries for the
links map. |
UpdateProcessResponse.Builder |
memoryInMb(Integer memoryInMb)
Initializes the value for the
memoryInMb attribute. |
UpdateProcessResponse.Builder |
port(int... elements)
Adds elements to
ports list. |
UpdateProcessResponse.Builder |
port(int element)
Adds one element to
ports list. |
UpdateProcessResponse.Builder |
ports(Iterable<Integer> elements)
Sets or replaces all elements for
ports list. |
UpdateProcessResponse.Builder |
putAllLinks(Map<String,? extends Link> links)
Put all mappings from the specified map as entries to
links map. |
UpdateProcessResponse.Builder |
type(String type)
Initializes the value for the
type attribute. |
UpdateProcessResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final UpdateProcessResponse.Builder from(Process instance)
org.cloudfoundry.client.v3.processes.Process instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UpdateProcessResponse.Builder from(UpdateProcessResponse instance)
UpdateProcessResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UpdateProcessResponse.Builder command(String command)
command attribute.command - The value for command (can be null)this builder for use in a chained invocationpublic final UpdateProcessResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAt (can be null)this builder for use in a chained invocationpublic final UpdateProcessResponse.Builder diskInMb(Integer diskInMb)
diskInMb attribute.diskInMb - The value for diskInMb (can be null)this builder for use in a chained invocationpublic final UpdateProcessResponse.Builder healthCheck(HealthCheck healthCheck)
healthCheck attribute.healthCheck - The value for healthCheck (can be null)this builder for use in a chained invocationpublic final UpdateProcessResponse.Builder id(String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final UpdateProcessResponse.Builder instances(Integer instances)
instances attribute.instances - The value for instances (can be null)this builder for use in a chained invocationpublic final UpdateProcessResponse.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 UpdateProcessResponse.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 UpdateProcessResponse.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 UpdateProcessResponse.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 UpdateProcessResponse.Builder memoryInMb(Integer memoryInMb)
memoryInMb attribute.memoryInMb - The value for memoryInMb (can be null)this builder for use in a chained invocationpublic final UpdateProcessResponse.Builder port(int element)
ports list.element - A ports elementthis builder for use in a chained invocationpublic final UpdateProcessResponse.Builder port(int... elements)
ports list.elements - An array of ports elementsthis builder for use in a chained invocationpublic final UpdateProcessResponse.Builder ports(Iterable<Integer> elements)
ports list.elements - An iterable of ports elementsthis builder for use in a chained invocationpublic final UpdateProcessResponse.Builder addAllPorts(Iterable<Integer> elements)
ports list.elements - An iterable of ports elementsthis builder for use in a chained invocationpublic final UpdateProcessResponse.Builder type(String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic final UpdateProcessResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic UpdateProcessResponse build()
UpdateProcessResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.