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 |
domains(Integer domains)
Initializes the value for the
domains attribute. |
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 |
perAppTasks(Integer perAppTasks)
Initializes the value for the
perAppTasks attribute. |
UsageSummary.Builder |
reservedPorts(Integer reservedPorts)
Initializes the value for the
reservedPorts attribute. |
UsageSummary.Builder |
routes(Integer routes)
Initializes the value for the
routes attribute. |
UsageSummary.Builder |
serviceInstances(Integer serviceInstances)
Initializes the value for the
serviceInstances attribute. |
UsageSummary.Builder |
serviceKeys(Integer serviceKeys)
Initializes the value for the
serviceKeys 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 final UsageSummary.Builder routes(Integer routes)
routes attribute.routes - The value for routes (can be null)this builder for use in a chained invocationpublic final UsageSummary.Builder serviceInstances(Integer serviceInstances)
serviceInstances attribute.serviceInstances - The value for serviceInstances (can be null)this builder for use in a chained invocationpublic final UsageSummary.Builder reservedPorts(Integer reservedPorts)
reservedPorts attribute.reservedPorts - The value for reservedPorts (can be null)this builder for use in a chained invocationpublic final UsageSummary.Builder domains(Integer domains)
domains attribute.domains - The value for domains (can be null)this builder for use in a chained invocationpublic final UsageSummary.Builder perAppTasks(Integer perAppTasks)
perAppTasks attribute.perAppTasks - The value for perAppTasks (can be null)this builder for use in a chained invocationpublic final UsageSummary.Builder serviceKeys(Integer serviceKeys)
serviceKeys attribute.serviceKeys - The value for serviceKeys (can be null)this builder for use in a chained invocationpublic UsageSummary build()
UsageSummary.IllegalStateException - if any required attributes are missingCopyright © 2026. All rights reserved.