public static final class CreateApplicationResponse.Builder extends Object
CreateApplicationResponse.
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 |
|---|---|
CreateApplicationResponse |
build()
Builds a new
CreateApplicationResponse. |
CreateApplicationResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
CreateApplicationResponse.Builder |
desiredState(String desiredState)
Initializes the value for the
desiredState attribute. |
CreateApplicationResponse.Builder |
environmentVariable(Map.Entry<String,? extends String> entry)
Put one entry to the
environmentVariables map. |
CreateApplicationResponse.Builder |
environmentVariable(String key,
String value)
Put one entry to the
environmentVariables map. |
CreateApplicationResponse.Builder |
environmentVariables(Map<String,? extends String> environmentVariables)
Sets or replaces all mappings from the specified map as entries for the
environmentVariables map. |
CreateApplicationResponse.Builder |
from(Application instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.applications.Application instance. |
CreateApplicationResponse.Builder |
from(CreateApplicationResponse instance)
Fill a builder with attribute values from the provided
CreateApplicationResponse instance. |
CreateApplicationResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
CreateApplicationResponse.Builder |
lifecycle(Lifecycle lifecycle)
Initializes the value for the
lifecycle attribute. |
CreateApplicationResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
CreateApplicationResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
CreateApplicationResponse.Builder |
links(Map<String,? extends Link> links)
Sets or replaces all mappings from the specified map as entries for the
links map. |
CreateApplicationResponse.Builder |
name(String name)
Initializes the value for the
name attribute. |
CreateApplicationResponse.Builder |
putAllEnvironmentVariables(Map<String,? extends String> environmentVariables)
Put all mappings from the specified map as entries to
environmentVariables map. |
CreateApplicationResponse.Builder |
putAllLinks(Map<String,? extends Link> links)
Put all mappings from the specified map as entries to
links map. |
CreateApplicationResponse.Builder |
totalDesiredInstances(Integer totalDesiredInstances)
Initializes the value for the
totalDesiredInstances attribute. |
CreateApplicationResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final CreateApplicationResponse.Builder from(Application instance)
org.cloudfoundry.client.v3.applications.Application instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CreateApplicationResponse.Builder from(CreateApplicationResponse instance)
CreateApplicationResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CreateApplicationResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAt (can be null)this builder for use in a chained invocationpublic final CreateApplicationResponse.Builder desiredState(String desiredState)
desiredState attribute.desiredState - The value for desiredState (can be null)this builder for use in a chained invocationpublic final CreateApplicationResponse.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 CreateApplicationResponse.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 CreateApplicationResponse.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 CreateApplicationResponse.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 CreateApplicationResponse.Builder id(String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final CreateApplicationResponse.Builder lifecycle(Lifecycle lifecycle)
lifecycle attribute.lifecycle - The value for lifecycle (can be null)this builder for use in a chained invocationpublic final CreateApplicationResponse.Builder link(String key, Link value)
links map.key - The key in the links mapvalue - The associated value in the links mapthis builder for use in a chained invocationpublic final CreateApplicationResponse.Builder link(Map.Entry<String,? extends Link> entry)
links map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final CreateApplicationResponse.Builder links(Map<String,? extends Link> links)
links map. Nulls are not permitted as keys or values, but parameter itself can be nulllinks - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final CreateApplicationResponse.Builder putAllLinks(Map<String,? extends Link> links)
links map. Nulls are not permittedlinks - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final CreateApplicationResponse.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final CreateApplicationResponse.Builder totalDesiredInstances(Integer totalDesiredInstances)
totalDesiredInstances attribute.totalDesiredInstances - The value for totalDesiredInstances (can be null)this builder for use in a chained invocationpublic final CreateApplicationResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic CreateApplicationResponse build()
CreateApplicationResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.