public static final class CreateApplicationRequest.Builder extends Object
CreateApplicationRequest.
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 |
|---|---|
CreateApplicationRequest.Builder |
addAllPorts(Iterable<Integer> elements)
Adds elements to
ports list. |
CreateApplicationRequest |
build()
Builds a new
CreateApplicationRequest. |
CreateApplicationRequest.Builder |
buildpack(String buildpack)
Initializes the value for the
buildpack attribute. |
CreateApplicationRequest.Builder |
command(String command)
Initializes the value for the
command attribute. |
CreateApplicationRequest.Builder |
console(Boolean console)
Deprecated.
|
CreateApplicationRequest.Builder |
debug(String debug)
Deprecated.
|
CreateApplicationRequest.Builder |
detectedStartCommand(String detectedStartCommand)
Initializes the value for the
detectedStartCommand attribute. |
CreateApplicationRequest.Builder |
diego(Boolean diego)
Initializes the value for the
diego attribute. |
CreateApplicationRequest.Builder |
diskQuota(Integer diskQuota)
Initializes the value for the
diskQuota attribute. |
CreateApplicationRequest.Builder |
dockerCredentialsJson(Map.Entry<String,? extends Object> entry)
Put one entry to the
dockerCredentialsJsons map. |
CreateApplicationRequest.Builder |
dockerCredentialsJson(String key,
Object value)
Put one entry to the
dockerCredentialsJsons map. |
CreateApplicationRequest.Builder |
dockerCredentialsJsons(Map<String,? extends Object> dockerCredentialsJsons)
Sets or replaces all mappings from the specified map as entries for the
dockerCredentialsJsons map. |
CreateApplicationRequest.Builder |
dockerImage(String dockerImage)
Initializes the value for the
dockerImage attribute. |
CreateApplicationRequest.Builder |
enableSsh(Boolean enableSsh)
Initializes the value for the
enableSsh attribute. |
CreateApplicationRequest.Builder |
environmentJson(Map.Entry<String,? extends Object> entry)
Put one entry to the
environmentJsons map. |
CreateApplicationRequest.Builder |
environmentJson(String key,
Object value)
Put one entry to the
environmentJsons map. |
CreateApplicationRequest.Builder |
environmentJsons(Map<String,? extends Object> environmentJsons)
Sets or replaces all mappings from the specified map as entries for the
environmentJsons map. |
CreateApplicationRequest.Builder |
from(CreateApplicationRequest instance)
Fill a builder with attribute values from the provided
CreateApplicationRequest instance. |
CreateApplicationRequest.Builder |
healthCheckHttpEndpoint(String healthCheckHttpEndpoint)
Initializes the value for the
healthCheckHttpEndpoint attribute. |
CreateApplicationRequest.Builder |
healthCheckTimeout(Integer healthCheckTimeout)
Initializes the value for the
healthCheckTimeout attribute. |
CreateApplicationRequest.Builder |
healthCheckType(String healthCheckType)
Initializes the value for the
healthCheckType attribute. |
CreateApplicationRequest.Builder |
instances(Integer instances)
Initializes the value for the
instances attribute. |
CreateApplicationRequest.Builder |
memory(Integer memory)
Initializes the value for the
memory attribute. |
CreateApplicationRequest.Builder |
name(String name)
Initializes the value for the
name attribute. |
CreateApplicationRequest.Builder |
port(int... elements)
Adds elements to
ports list. |
CreateApplicationRequest.Builder |
port(int element)
Adds one element to
ports list. |
CreateApplicationRequest.Builder |
ports(Iterable<Integer> elements)
Sets or replaces all elements for
ports list. |
CreateApplicationRequest.Builder |
production(Boolean production)
Deprecated.
|
CreateApplicationRequest.Builder |
putAllDockerCredentialsJsons(Map<String,? extends Object> dockerCredentialsJsons)
Put all mappings from the specified map as entries to
dockerCredentialsJsons map. |
CreateApplicationRequest.Builder |
putAllEnvironmentJsons(Map<String,? extends Object> environmentJsons)
Put all mappings from the specified map as entries to
environmentJsons map. |
CreateApplicationRequest.Builder |
spaceId(String spaceId)
Initializes the value for the
spaceId attribute. |
CreateApplicationRequest.Builder |
stackId(String stackId)
Initializes the value for the
stackId attribute. |
CreateApplicationRequest.Builder |
state(String state)
Initializes the value for the
state attribute. |
public final CreateApplicationRequest.Builder from(CreateApplicationRequest instance)
CreateApplicationRequest 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 CreateApplicationRequest.Builder buildpack(String buildpack)
buildpack attribute.buildpack - The value for buildpack (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder command(String command)
command attribute.command - The value for command (can be null)this builder for use in a chained invocation@Deprecated public final CreateApplicationRequest.Builder console(Boolean console)
console attribute.console - The value for console (can be null)this builder for use in a chained invocation@Deprecated public final CreateApplicationRequest.Builder debug(String debug)
debug attribute.debug - The value for debug (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder detectedStartCommand(String detectedStartCommand)
detectedStartCommand attribute.detectedStartCommand - The value for detectedStartCommand (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder diego(Boolean diego)
diego attribute.diego - The value for diego (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder diskQuota(Integer diskQuota)
diskQuota attribute.diskQuota - The value for diskQuota (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder dockerCredentialsJson(String key, Object value)
dockerCredentialsJsons map.key - The key in the dockerCredentialsJsons mapvalue - The associated value in the dockerCredentialsJsons mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder dockerCredentialsJson(Map.Entry<String,? extends Object> entry)
dockerCredentialsJsons map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder dockerCredentialsJsons(Map<String,? extends Object> dockerCredentialsJsons)
dockerCredentialsJsons map. Nulls are not permitted as keys or values, but parameter itself can be nulldockerCredentialsJsons - The entries that will be added to the dockerCredentialsJsons mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder putAllDockerCredentialsJsons(Map<String,? extends Object> dockerCredentialsJsons)
dockerCredentialsJsons map. Nulls are not permitteddockerCredentialsJsons - The entries that will be added to the dockerCredentialsJsons mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder dockerImage(String dockerImage)
dockerImage attribute.dockerImage - The value for dockerImage (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder enableSsh(Boolean enableSsh)
enableSsh attribute.enableSsh - The value for enableSsh (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder environmentJson(String key, Object value)
environmentJsons map.key - The key in the environmentJsons mapvalue - The associated value in the environmentJsons mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder environmentJson(Map.Entry<String,? extends Object> entry)
environmentJsons map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder environmentJsons(Map<String,? extends Object> environmentJsons)
environmentJsons map. Nulls are not permitted as keys or values, but parameter itself can be nullenvironmentJsons - The entries that will be added to the environmentJsons mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder putAllEnvironmentJsons(Map<String,? extends Object> environmentJsons)
environmentJsons map. Nulls are not permittedenvironmentJsons - The entries that will be added to the environmentJsons mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder healthCheckHttpEndpoint(String healthCheckHttpEndpoint)
healthCheckHttpEndpoint attribute.healthCheckHttpEndpoint - The value for healthCheckHttpEndpoint (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder healthCheckTimeout(Integer healthCheckTimeout)
healthCheckTimeout attribute.healthCheckTimeout - The value for healthCheckTimeout (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder healthCheckType(String healthCheckType)
healthCheckType attribute.healthCheckType - The value for healthCheckType (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder instances(Integer instances)
instances attribute.instances - The value for instances (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder memory(Integer memory)
memory attribute.memory - The value for memory (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder port(int element)
ports list.element - A ports elementthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder port(int... elements)
ports list.elements - An array of ports elementsthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder ports(Iterable<Integer> elements)
ports list.elements - An iterable of ports elementsthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder addAllPorts(Iterable<Integer> elements)
ports list.elements - An iterable of ports elementsthis builder for use in a chained invocation@Deprecated public final CreateApplicationRequest.Builder production(Boolean production)
production attribute.production - The value for production (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder spaceId(String spaceId)
spaceId attribute.spaceId - The value for spaceIdthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder stackId(String stackId)
stackId attribute.stackId - The value for stackId (can be null)this builder for use in a chained invocationpublic final CreateApplicationRequest.Builder state(String state)
state attribute.state - The value for state (can be null)this builder for use in a chained invocationpublic CreateApplicationRequest build()
CreateApplicationRequest.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.