public static final class UsageSummary.Builder extends Object
UsageSummary.
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 |
|---|---|
UsageSummary |
build()
Builds a new
UsageSummary. |
UsageSummary.Builder |
from(UsageSummary instance)
Fill a builder with attribute values from the provided
UsageSummary instance. |
UsageSummary.Builder |
memoryInMb(Integer memoryInMb)
Initializes the value for the
memoryInMb attribute. |
UsageSummary.Builder |
startedInstances(Integer startedInstances)
Initializes the value for the
startedInstances attribute. |
public final UsageSummary.Builder from(UsageSummary instance)
UsageSummary instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UsageSummary.Builder memoryInMb(Integer memoryInMb)
memoryInMb attribute.memoryInMb - The value for memoryInMbthis builder for use in a chained invocationpublic final UsageSummary.Builder startedInstances(Integer startedInstances)
startedInstances attribute.startedInstances - The value for startedInstancesthis builder for use in a chained invocationpublic UsageSummary build()
UsageSummary.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.