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.
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 dockerCredentials(DockerCredentials dockerCredentials)
dockerCredentials attribute.dockerCredentials - The value for dockerCredentials (can be null)this 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> entries)
environmentJsons map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - 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> entries)
environmentJsons map. Nulls are not permittedentries - 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 ports(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 © 2020. All rights reserved.