public static final class ApplicationEnvironments.Builder extends Object
ApplicationEnvironments
.
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 |
---|---|
ApplicationEnvironments |
build()
Builds a new
ApplicationEnvironments . |
ApplicationEnvironments.Builder |
from(ApplicationEnvironments instance)
Fill a builder with attribute values from the provided
ApplicationEnvironments instance. |
ApplicationEnvironments.Builder |
putAllRunning(Map<String,? extends Object> running)
Put all mappings from the specified map as entries to
running map. |
ApplicationEnvironments.Builder |
putAllStaging(Map<String,? extends Object> staging)
Put all mappings from the specified map as entries to
staging map. |
ApplicationEnvironments.Builder |
putAllSystemProvided(Map<String,? extends Object> systemProvided)
Put all mappings from the specified map as entries to
systemProvided map. |
ApplicationEnvironments.Builder |
putAllUserProvided(Map<String,? extends Object> userProvided)
Put all mappings from the specified map as entries to
userProvided map. |
ApplicationEnvironments.Builder |
running(Map.Entry<String,? extends Object> entry)
Put one entry to the
running map. |
ApplicationEnvironments.Builder |
running(Map<String,? extends Object> running)
Sets or replaces all mappings from the specified map as entries for the
running map. |
ApplicationEnvironments.Builder |
running(String key,
Object value)
Put one entry to the
running map. |
ApplicationEnvironments.Builder |
staging(Map.Entry<String,? extends Object> entry)
Put one entry to the
staging map. |
ApplicationEnvironments.Builder |
staging(Map<String,? extends Object> staging)
Sets or replaces all mappings from the specified map as entries for the
staging map. |
ApplicationEnvironments.Builder |
staging(String key,
Object value)
Put one entry to the
staging map. |
ApplicationEnvironments.Builder |
systemProvided(Map.Entry<String,? extends Object> entry)
Put one entry to the
systemProvided map. |
ApplicationEnvironments.Builder |
systemProvided(Map<String,? extends Object> systemProvided)
Sets or replaces all mappings from the specified map as entries for the
systemProvided map. |
ApplicationEnvironments.Builder |
systemProvided(String key,
Object value)
Put one entry to the
systemProvided map. |
ApplicationEnvironments.Builder |
userProvided(Map.Entry<String,? extends Object> entry)
Put one entry to the
userProvided map. |
ApplicationEnvironments.Builder |
userProvided(Map<String,? extends Object> userProvided)
Sets or replaces all mappings from the specified map as entries for the
userProvided map. |
ApplicationEnvironments.Builder |
userProvided(String key,
Object value)
Put one entry to the
userProvided map. |
public final ApplicationEnvironments.Builder from(ApplicationEnvironments instance)
ApplicationEnvironments
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 ApplicationEnvironments.Builder running(String key, Object value)
running
map.key
- The key in the running mapvalue
- The associated value in the running mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder running(Map.Entry<String,? extends Object> entry)
running
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder running(Map<String,? extends Object> running)
running
map. Nulls are not permittedrunning
- The entries that will be added to the running mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder putAllRunning(Map<String,? extends Object> running)
running
map. Nulls are not permittedrunning
- The entries that will be added to the running mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder staging(String key, Object value)
staging
map.key
- The key in the staging mapvalue
- The associated value in the staging mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder staging(Map.Entry<String,? extends Object> entry)
staging
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder staging(Map<String,? extends Object> staging)
staging
map. Nulls are not permittedstaging
- The entries that will be added to the staging mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder putAllStaging(Map<String,? extends Object> staging)
staging
map. Nulls are not permittedstaging
- The entries that will be added to the staging mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder systemProvided(String key, Object value)
systemProvided
map.key
- The key in the systemProvided mapvalue
- The associated value in the systemProvided mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder systemProvided(Map.Entry<String,? extends Object> entry)
systemProvided
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder systemProvided(Map<String,? extends Object> systemProvided)
systemProvided
map. Nulls are not permittedsystemProvided
- The entries that will be added to the systemProvided mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder putAllSystemProvided(Map<String,? extends Object> systemProvided)
systemProvided
map. Nulls are not permittedsystemProvided
- The entries that will be added to the systemProvided mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder userProvided(String key, Object value)
userProvided
map.key
- The key in the userProvided mapvalue
- The associated value in the userProvided mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder userProvided(Map.Entry<String,? extends Object> entry)
userProvided
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder userProvided(Map<String,? extends Object> userProvided)
userProvided
map. Nulls are not permitteduserProvided
- The entries that will be added to the userProvided mapthis
builder for use in a chained invocationpublic final ApplicationEnvironments.Builder putAllUserProvided(Map<String,? extends Object> userProvided)
userProvided
map. Nulls are not permitteduserProvided
- The entries that will be added to the userProvided mapthis
builder for use in a chained invocationpublic ApplicationEnvironments build()
ApplicationEnvironments
.IllegalStateException
- if any required attributes are missingCopyright © 2016 Pivotal Software, Inc.. All rights reserved.