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