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