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 |
build()
Builds a new
CreateApplicationRequest. |
CreateApplicationRequest.Builder |
environmentVariable(Map.Entry<String,? extends String> entry)
Put one entry to the
environmentVariables map. |
CreateApplicationRequest.Builder |
environmentVariable(String key,
String value)
Put one entry to the
environmentVariables map. |
CreateApplicationRequest.Builder |
environmentVariables(Map<String,? extends String> environmentVariables)
Sets or replaces all mappings from the specified map as entries for the
environmentVariables map. |
CreateApplicationRequest.Builder |
from(CreateApplicationRequest instance)
Fill a builder with attribute values from the provided
CreateApplicationRequest instance. |
CreateApplicationRequest.Builder |
lifecycle(Lifecycle lifecycle)
Initializes the value for the
lifecycle attribute. |
CreateApplicationRequest.Builder |
name(String name)
Initializes the value for the
name attribute. |
CreateApplicationRequest.Builder |
putAllEnvironmentVariables(Map<String,? extends String> environmentVariables)
Put all mappings from the specified map as entries to
environmentVariables map. |
CreateApplicationRequest.Builder |
relationships(Relationships relationships)
Initializes the value for the
relationships 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 environmentVariable(String key, String value)
environmentVariables map.key - The key in the environmentVariables mapvalue - The associated value in the environmentVariables mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder environmentVariable(Map.Entry<String,? extends String> entry)
environmentVariables map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder environmentVariables(Map<String,? extends String> environmentVariables)
environmentVariables map. Nulls are not permitted as keys or values, but parameter itself can be nullenvironmentVariables - The entries that will be added to the environmentVariables mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder putAllEnvironmentVariables(Map<String,? extends String> environmentVariables)
environmentVariables map. Nulls are not permittedenvironmentVariables - The entries that will be added to the environmentVariables mapthis builder for use in a chained invocationpublic final CreateApplicationRequest.Builder lifecycle(Lifecycle lifecycle)
lifecycle attribute.lifecycle - The value for lifecycle (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 relationships(Relationships relationships)
relationships attribute.relationships - The value for relationshipsthis builder for use in a chained invocationpublic CreateApplicationRequest build()
CreateApplicationRequest.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.