| Modifier and Type | Method and Description |
|---|---|
Usage |
build()
Builds a new
Usage. |
Usage.Builder |
cpu(Double cpu)
Initializes the value for the
cpu attribute. |
Usage.Builder |
disk(Long disk)
Initializes the value for the
disk attribute. |
Usage.Builder |
from(Usage instance)
Fill a builder with attribute values from the provided
Usage instance. |
Usage.Builder |
memory(Long memory)
Initializes the value for the
memory attribute. |
Usage.Builder |
time(String time)
Initializes the value for the
time attribute. |
public final Usage.Builder from(Usage instance)
Usage 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 Usage.Builder cpu(Double cpu)
cpu attribute.cpu - The value for cpu (can be null)this builder for use in a chained invocationpublic final Usage.Builder disk(Long disk)
disk attribute.disk - The value for disk (can be null)this builder for use in a chained invocationpublic final Usage.Builder memory(Long memory)
memory attribute.memory - The value for memory (can be null)this builder for use in a chained invocationpublic final Usage.Builder time(String time)
time attribute.time - The value for time (can be null)this builder for use in a chained invocationpublic Usage build()
Usage.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.