public static final class InfoResponse.Builder extends Object
InfoResponse.
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 |
|---|---|
InfoResponse |
build()
Builds a new
InfoResponse. |
InfoResponse.Builder |
from(InfoResponse instance)
Fill a builder with attribute values from the provided
InfoResponse instance. |
InfoResponse.Builder |
version(String version)
Initializes the value for the
version attribute. |
InfoResponse.Builder |
vmUptime(Long vmUptime)
Initializes the value for the
vmUptime attribute. |
public final InfoResponse.Builder from(InfoResponse instance)
InfoResponse 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 InfoResponse.Builder version(String version)
version attribute.version - The value for version (can be null)this builder for use in a chained invocationpublic final InfoResponse.Builder vmUptime(Long vmUptime)
vmUptime attribute.vmUptime - The value for vmUptime (can be null)this builder for use in a chained invocationpublic InfoResponse build()
InfoResponse.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.