public static final class ApplicationEntity.Builder extends Object
ApplicationEntity
.
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 |
---|---|
ApplicationEntity.Builder |
addAllPorts(Iterable<Integer> elements)
Adds elements to
ports list. |
ApplicationEntity |
build()
Builds a new
ApplicationEntity . |
ApplicationEntity.Builder |
buildpack(String buildpack)
Initializes the value for the
buildpack attribute. |
ApplicationEntity.Builder |
command(String command)
Initializes the value for the
command attribute. |
ApplicationEntity.Builder |
console(Boolean console)
Deprecated.
|
ApplicationEntity.Builder |
debug(String debug)
Deprecated.
|
ApplicationEntity.Builder |
detectedBuildpack(String detectedBuildpack)
Initializes the value for the
detectedBuildpack attribute. |
ApplicationEntity.Builder |
detectedBuildpackId(String detectedBuildpackId)
Initializes the value for the
detectedBuildpackId attribute. |
ApplicationEntity.Builder |
detectedStartCommand(String detectedStartCommand)
Initializes the value for the
detectedStartCommand attribute. |
ApplicationEntity.Builder |
diego(Boolean diego)
Initializes the value for the
diego attribute. |
ApplicationEntity.Builder |
diskQuota(Integer diskQuota)
Initializes the value for the
diskQuota attribute. |
ApplicationEntity.Builder |
dockerCredentials(DockerCredentials dockerCredentials)
Initializes the value for the
dockerCredentials attribute. |
ApplicationEntity.Builder |
dockerCredentialsJson(Map.Entry<String,? extends Object> entry)
Put one entry to the
dockerCredentialsJsons map. |
ApplicationEntity.Builder |
dockerCredentialsJson(String key,
Object value)
Put one entry to the
dockerCredentialsJsons map. |
ApplicationEntity.Builder |
dockerCredentialsJsons(Map<String,? extends Object> dockerCredentialsJsons)
Sets or replaces all mappings from the specified map as entries for the
dockerCredentialsJsons map. |
ApplicationEntity.Builder |
dockerImage(String dockerImage)
Initializes the value for the
dockerImage attribute. |
ApplicationEntity.Builder |
enableSsh(Boolean enableSsh)
Initializes the value for the
enableSsh attribute. |
ApplicationEntity.Builder |
environmentJson(Map.Entry<String,? extends Object> entry)
Put one entry to the
environmentJsons map. |
ApplicationEntity.Builder |
environmentJson(String key,
Object value)
Put one entry to the
environmentJsons map. |
ApplicationEntity.Builder |
environmentJsons(Map<String,? extends Object> environmentJsons)
Sets or replaces all mappings from the specified map as entries for the
environmentJsons map. |
ApplicationEntity.Builder |
eventsUrl(String eventsUrl)
Initializes the value for the
eventsUrl attribute. |
ApplicationEntity.Builder |
from(AbstractApplicationEntity instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v2.applications.AbstractApplicationEntity instance. |
ApplicationEntity.Builder |
from(ApplicationEntity instance)
Fill a builder with attribute values from the provided
ApplicationEntity instance. |
ApplicationEntity.Builder |
healthCheckHttpEndpoint(String healthCheckHttpEndpoint)
Initializes the value for the
healthCheckHttpEndpoint attribute. |
ApplicationEntity.Builder |
healthCheckTimeout(Integer healthCheckTimeout)
Initializes the value for the
healthCheckTimeout attribute. |
ApplicationEntity.Builder |
healthCheckType(String healthCheckType)
Initializes the value for the
healthCheckType attribute. |
ApplicationEntity.Builder |
instances(Integer instances)
Initializes the value for the
instances attribute. |
ApplicationEntity.Builder |
memory(Integer memory)
Initializes the value for the
memory attribute. |
ApplicationEntity.Builder |
name(String name)
Initializes the value for the
name attribute. |
ApplicationEntity.Builder |
packageState(String packageState)
Initializes the value for the
packageState attribute. |
ApplicationEntity.Builder |
packageUpdatedAt(String packageUpdatedAt)
Initializes the value for the
packageUpdatedAt attribute. |
ApplicationEntity.Builder |
port(int... elements)
Adds elements to
ports list. |
ApplicationEntity.Builder |
port(int element)
Adds one element to
ports list. |
ApplicationEntity.Builder |
ports(Iterable<Integer> elements)
Sets or replaces all elements for
ports list. |
ApplicationEntity.Builder |
production(Boolean production)
Deprecated.
|
ApplicationEntity.Builder |
putAllDockerCredentialsJsons(Map<String,? extends Object> dockerCredentialsJsons)
Put all mappings from the specified map as entries to
dockerCredentialsJsons map. |
ApplicationEntity.Builder |
putAllEnvironmentJsons(Map<String,? extends Object> environmentJsons)
Put all mappings from the specified map as entries to
environmentJsons map. |
ApplicationEntity.Builder |
routeMappingsUrl(String routeMappingsUrl)
Initializes the value for the
routeMappingsUrl attribute. |
ApplicationEntity.Builder |
routesUrl(String routesUrl)
Initializes the value for the
routesUrl attribute. |
ApplicationEntity.Builder |
serviceBindingsUrl(String serviceBindingsUrl)
Initializes the value for the
serviceBindingsUrl attribute. |
ApplicationEntity.Builder |
spaceId(String spaceId)
Initializes the value for the
spaceId attribute. |
ApplicationEntity.Builder |
spaceUrl(String spaceUrl)
Initializes the value for the
spaceUrl attribute. |
ApplicationEntity.Builder |
stackId(String stackId)
Initializes the value for the
stackId attribute. |
ApplicationEntity.Builder |
stackUrl(String stackUrl)
Initializes the value for the
stackUrl attribute. |
ApplicationEntity.Builder |
stagingFailedDescription(String stagingFailedDescription)
Initializes the value for the
stagingFailedDescription attribute. |
ApplicationEntity.Builder |
stagingFailedReason(String stagingFailedReason)
Initializes the value for the
stagingFailedReason attribute. |
ApplicationEntity.Builder |
stagingTaskId(String stagingTaskId)
Initializes the value for the
stagingTaskId attribute. |
ApplicationEntity.Builder |
state(String state)
Initializes the value for the
state attribute. |
ApplicationEntity.Builder |
version(String version)
Initializes the value for the
version attribute. |
public final ApplicationEntity.Builder from(ApplicationEntity instance)
ApplicationEntity
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplicationEntity.Builder from(AbstractApplicationEntity instance)
org.cloudfoundry.client.v2.applications.AbstractApplicationEntity
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplicationEntity.Builder detectedBuildpack(String detectedBuildpack)
detectedBuildpack
attribute.detectedBuildpack
- The value for detectedBuildpack (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder detectedBuildpackId(String detectedBuildpackId)
detectedBuildpackId
attribute.detectedBuildpackId
- The value for detectedBuildpackId (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder enableSsh(Boolean enableSsh)
enableSsh
attribute.enableSsh
- The value for enableSsh (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder eventsUrl(String eventsUrl)
eventsUrl
attribute.eventsUrl
- The value for eventsUrl (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder packageState(String packageState)
packageState
attribute.packageState
- The value for packageState (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder packageUpdatedAt(String packageUpdatedAt)
packageUpdatedAt
attribute.packageUpdatedAt
- The value for packageUpdatedAt (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder port(int element)
ports
list.element
- A ports elementthis
builder for use in a chained invocationpublic final ApplicationEntity.Builder port(int... elements)
ports
list.elements
- An array of ports elementsthis
builder for use in a chained invocationpublic final ApplicationEntity.Builder ports(Iterable<Integer> elements)
ports
list.elements
- An iterable of ports elementsthis
builder for use in a chained invocationpublic final ApplicationEntity.Builder addAllPorts(Iterable<Integer> elements)
ports
list.elements
- An iterable of ports elementsthis
builder for use in a chained invocationpublic final ApplicationEntity.Builder routeMappingsUrl(String routeMappingsUrl)
routeMappingsUrl
attribute.routeMappingsUrl
- The value for routeMappingsUrl (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder routesUrl(String routesUrl)
routesUrl
attribute.routesUrl
- The value for routesUrl (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder serviceBindingsUrl(String serviceBindingsUrl)
serviceBindingsUrl
attribute.serviceBindingsUrl
- The value for serviceBindingsUrl (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder spaceUrl(String spaceUrl)
spaceUrl
attribute.spaceUrl
- The value for spaceUrl (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder stackUrl(String stackUrl)
stackUrl
attribute.stackUrl
- The value for stackUrl (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder version(String version)
version
attribute.version
- The value for version (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder buildpack(String buildpack)
buildpack
attribute.buildpack
- The value for buildpack (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.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 ApplicationEntity.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 ApplicationEntity.Builder debug(String debug)
debug
attribute.debug
- The value for debug (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder detectedStartCommand(String detectedStartCommand)
detectedStartCommand
attribute.detectedStartCommand
- The value for detectedStartCommand (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder diego(Boolean diego)
diego
attribute.diego
- The value for diego (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder diskQuota(Integer diskQuota)
diskQuota
attribute.diskQuota
- The value for diskQuota (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder dockerCredentials(DockerCredentials dockerCredentials)
dockerCredentials
attribute.dockerCredentials
- The value for dockerCredentials (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.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 ApplicationEntity.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 ApplicationEntity.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 ApplicationEntity.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 ApplicationEntity.Builder dockerImage(String dockerImage)
dockerImage
attribute.dockerImage
- The value for dockerImage (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.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 ApplicationEntity.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 ApplicationEntity.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 ApplicationEntity.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 ApplicationEntity.Builder healthCheckHttpEndpoint(String healthCheckHttpEndpoint)
healthCheckHttpEndpoint
attribute.healthCheckHttpEndpoint
- The value for healthCheckHttpEndpoint (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder healthCheckTimeout(Integer healthCheckTimeout)
healthCheckTimeout
attribute.healthCheckTimeout
- The value for healthCheckTimeout (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder healthCheckType(String healthCheckType)
healthCheckType
attribute.healthCheckType
- The value for healthCheckType (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder instances(Integer instances)
instances
attribute.instances
- The value for instances (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder memory(Integer memory)
memory
attribute.memory
- The value for memory (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder name(String name)
name
attribute.name
- The value for name (can be null
)this
builder for use in a chained invocation@Deprecated public final ApplicationEntity.Builder production(Boolean production)
production
attribute.production
- The value for production (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder spaceId(String spaceId)
spaceId
attribute.spaceId
- The value for spaceId (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder stackId(String stackId)
stackId
attribute.stackId
- The value for stackId (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder stagingFailedDescription(String stagingFailedDescription)
stagingFailedDescription
attribute.stagingFailedDescription
- The value for stagingFailedDescription (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder stagingFailedReason(String stagingFailedReason)
stagingFailedReason
attribute.stagingFailedReason
- The value for stagingFailedReason (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder stagingTaskId(String stagingTaskId)
stagingTaskId
attribute.stagingTaskId
- The value for stagingTaskId (can be null
)this
builder for use in a chained invocationpublic final ApplicationEntity.Builder state(String state)
state
attribute.state
- The value for state (can be null
)this
builder for use in a chained invocationpublic ApplicationEntity build()
ApplicationEntity
.IllegalStateException
- if any required attributes are missingCopyright © 2018 Pivotal Software, Inc.. All rights reserved.