public static final class StagePackageRequest.Builder extends Object
StagePackageRequest.
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 |
|---|---|
StagePackageRequest |
build()
Builds a new
StagePackageRequest. |
StagePackageRequest.Builder |
environmentVariable(Map.Entry<String,? extends Object> entry)
Put one entry to the
environmentVariables map. |
StagePackageRequest.Builder |
environmentVariable(String key,
Object value)
Put one entry to the
environmentVariables map. |
StagePackageRequest.Builder |
environmentVariables(Map<String,? extends Object> environmentVariables)
Sets or replaces all mappings from the specified map as entries for the
environmentVariables map. |
StagePackageRequest.Builder |
from(StagePackageRequest instance)
Fill a builder with attribute values from the provided
StagePackageRequest instance. |
StagePackageRequest.Builder |
lifecycle(Lifecycle lifecycle)
Initializes the value for the
lifecycle attribute. |
StagePackageRequest.Builder |
packageId(String packageId)
Initializes the value for the
packageId attribute. |
StagePackageRequest.Builder |
putAllEnvironmentVariables(Map<String,? extends Object> environmentVariables)
Put all mappings from the specified map as entries to
environmentVariables map. |
StagePackageRequest.Builder |
stagingDiskInMb(Integer stagingDiskInMb)
Initializes the value for the
stagingDiskInMb attribute. |
StagePackageRequest.Builder |
stagingMemoryInMb(Integer stagingMemoryInMb)
Initializes the value for the
stagingMemoryInMb attribute. |
public final StagePackageRequest.Builder from(StagePackageRequest instance)
StagePackageRequest 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 StagePackageRequest.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 StagePackageRequest.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 StagePackageRequest.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 StagePackageRequest.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 StagePackageRequest.Builder lifecycle(Lifecycle lifecycle)
lifecycle attribute.lifecycle - The value for lifecycle (can be null)this builder for use in a chained invocationpublic final StagePackageRequest.Builder packageId(String packageId)
packageId attribute.packageId - The value for packageIdthis builder for use in a chained invocationpublic final StagePackageRequest.Builder stagingDiskInMb(Integer stagingDiskInMb)
stagingDiskInMb attribute.stagingDiskInMb - The value for stagingDiskInMb (can be null)this builder for use in a chained invocationpublic final StagePackageRequest.Builder stagingMemoryInMb(Integer stagingMemoryInMb)
stagingMemoryInMb attribute.stagingMemoryInMb - The value for stagingMemoryInMb (can be null)this builder for use in a chained invocationpublic StagePackageRequest build()
StagePackageRequest.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.