public static final class UpdateProcessRequest.Builder extends Object
UpdateProcessRequest.
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 |
|---|---|
UpdateProcessRequest.Builder |
addAllPorts(Iterable<Integer> elements)
Adds elements to
ports list. |
UpdateProcessRequest |
build()
Builds a new
UpdateProcessRequest. |
UpdateProcessRequest.Builder |
command(String command)
Initializes the value for the
command attribute. |
UpdateProcessRequest.Builder |
from(UpdateProcessRequest instance)
Fill a builder with attribute values from the provided
UpdateProcessRequest instance. |
UpdateProcessRequest.Builder |
healthCheck(HealthCheck healthCheck)
Initializes the value for the
healthCheck attribute. |
UpdateProcessRequest.Builder |
port(int... elements)
Adds elements to
ports list. |
UpdateProcessRequest.Builder |
port(int element)
Adds one element to
ports list. |
UpdateProcessRequest.Builder |
ports(Iterable<Integer> elements)
Sets or replaces all elements for
ports list. |
UpdateProcessRequest.Builder |
processId(String processId)
Initializes the value for the
processId attribute. |
public final UpdateProcessRequest.Builder from(UpdateProcessRequest instance)
UpdateProcessRequest instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UpdateProcessRequest.Builder command(String command)
command attribute.command - The value for commandthis builder for use in a chained invocationpublic final UpdateProcessRequest.Builder healthCheck(HealthCheck healthCheck)
healthCheck attribute.healthCheck - The value for healthCheck (can be null)this builder for use in a chained invocationpublic final UpdateProcessRequest.Builder port(int element)
ports list.element - A ports elementthis builder for use in a chained invocationpublic final UpdateProcessRequest.Builder port(int... elements)
ports list.elements - An array of ports elementsthis builder for use in a chained invocationpublic final UpdateProcessRequest.Builder ports(Iterable<Integer> elements)
ports list.elements - An iterable of ports elementsthis builder for use in a chained invocationpublic final UpdateProcessRequest.Builder addAllPorts(Iterable<Integer> elements)
ports list.elements - An iterable of ports elementsthis builder for use in a chained invocationpublic final UpdateProcessRequest.Builder processId(String processId)
processId attribute.processId - The value for processIdthis builder for use in a chained invocationpublic UpdateProcessRequest build()
UpdateProcessRequest.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.