public static final class StagePackageResponse.Builder extends Object
StagePackageResponse.
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 |
|---|---|
StagePackageResponse |
build()
Builds a new
StagePackageResponse. |
StagePackageResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
StagePackageResponse.Builder |
environmentVariable(Map.Entry<String,? extends Object> entry)
Put one entry to the
environmentVariables map. |
StagePackageResponse.Builder |
environmentVariable(String key,
Object value)
Put one entry to the
environmentVariables map. |
StagePackageResponse.Builder |
environmentVariables(Map<String,? extends Object> environmentVariables)
Sets or replaces all mappings from the specified map as entries for the
environmentVariables map. |
StagePackageResponse.Builder |
error(String error)
Initializes the value for the
error attribute. |
StagePackageResponse.Builder |
from(Droplet instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.droplets.Droplet instance. |
StagePackageResponse.Builder |
from(StagePackageResponse instance)
Fill a builder with attribute values from the provided
StagePackageResponse instance. |
StagePackageResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
StagePackageResponse.Builder |
lifecycle(Lifecycle lifecycle)
Initializes the value for the
lifecycle attribute. |
StagePackageResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
StagePackageResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
StagePackageResponse.Builder |
links(Map<String,? extends Link> links)
Sets or replaces all mappings from the specified map as entries for the
links map. |
StagePackageResponse.Builder |
putAllEnvironmentVariables(Map<String,? extends Object> environmentVariables)
Put all mappings from the specified map as entries to
environmentVariables map. |
StagePackageResponse.Builder |
putAllLinks(Map<String,? extends Link> links)
Put all mappings from the specified map as entries to
links map. |
StagePackageResponse.Builder |
result(Result result)
Initializes the value for the
result attribute. |
StagePackageResponse.Builder |
stagingDiskInMb(Integer stagingDiskInMb)
Initializes the value for the
stagingDiskInMb attribute. |
StagePackageResponse.Builder |
stagingMemoryInMb(Integer stagingMemoryInMb)
Initializes the value for the
stagingMemoryInMb attribute. |
StagePackageResponse.Builder |
state(State state)
Initializes the value for the
state attribute. |
StagePackageResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final StagePackageResponse.Builder from(Droplet instance)
org.cloudfoundry.client.v3.droplets.Droplet instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final StagePackageResponse.Builder from(StagePackageResponse instance)
StagePackageResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final StagePackageResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAt (can be null)this builder for use in a chained invocationpublic final StagePackageResponse.Builder environmentVariable(String key, Object 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 StagePackageResponse.Builder environmentVariable(Map.Entry<String,? extends Object> entry)
environmentVariables map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final StagePackageResponse.Builder environmentVariables(Map<String,? extends Object> 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 StagePackageResponse.Builder putAllEnvironmentVariables(Map<String,? extends Object> 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 StagePackageResponse.Builder error(String error)
error attribute.error - The value for error (can be null)this builder for use in a chained invocationpublic final StagePackageResponse.Builder id(String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final StagePackageResponse.Builder lifecycle(Lifecycle lifecycle)
lifecycle attribute.lifecycle - The value for lifecycle (can be null)this builder for use in a chained invocationpublic final StagePackageResponse.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 StagePackageResponse.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 StagePackageResponse.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 StagePackageResponse.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 StagePackageResponse.Builder result(Result result)
result attribute.result - The value for result (can be null)this builder for use in a chained invocationpublic final StagePackageResponse.Builder stagingDiskInMb(Integer stagingDiskInMb)
stagingDiskInMb attribute.stagingDiskInMb - The value for stagingDiskInMb (can be null)this builder for use in a chained invocationpublic final StagePackageResponse.Builder stagingMemoryInMb(Integer stagingMemoryInMb)
stagingMemoryInMb attribute.stagingMemoryInMb - The value for stagingMemoryInMb (can be null)this builder for use in a chained invocationpublic final StagePackageResponse.Builder state(State state)
state attribute.state - The value for state (can be null)this builder for use in a chained invocationpublic final StagePackageResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic StagePackageResponse build()
StagePackageResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.