public static final class NodeServiceStatusProperties.Builder
extends java.lang.Object
NodeServiceStatusProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
NodeServiceStatusProperties . |
Modifier and Type | Method and Description |
---|---|
NodeServiceStatusProperties |
build() |
NodeServiceStatusProperties.Builder |
setHealth(java.lang.String health)
Possible values are:
NodeServiceStatusProperties.HEALTH_STABLE NodeServiceStatusProperties.HEALTH_DEGRADED
Service health in addition to runtime_state
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
NodeServiceStatusProperties.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
NodeServiceStatusProperties.Builder |
setMonitorPid(java.lang.Long monitorPid)
Service monitor process id format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeServiceStatusProperties.Builder |
setMonitorRuntimeState(java.lang.String monitorRuntimeState)
Possible values are:
NodeServiceStatusProperties.MONITOR_RUNTIME_STATE_RUNNING
NodeServiceStatusProperties.MONITOR_RUNTIME_STATE_STOPPED
Service monitor runtime state
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
NodeServiceStatusProperties.Builder |
setPids(java.util.List<java.lang.Long> pids)
Service process ids format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeServiceStatusProperties.Builder |
setReason(java.lang.String reason)
Reason for service degradation
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeServiceStatusProperties.Builder |
setRuntimeState(java.lang.String runtimeState)
Possible values are:
NodeServiceStatusProperties.RUNTIME_STATE_RUNNING
NodeServiceStatusProperties.RUNTIME_STATE_STOPPED
Service runtime state
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
NodeServiceStatusProperties.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeServiceStatusProperties.Builder |
setSelf(SelfResourceLink self) |
public Builder()
NodeServiceStatusProperties
.public NodeServiceStatusProperties.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public NodeServiceStatusProperties.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public NodeServiceStatusProperties.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public NodeServiceStatusProperties.Builder setHealth(java.lang.String health)
health
- New value for the property.public NodeServiceStatusProperties.Builder setMonitorPid(java.lang.Long monitorPid)
monitorPid
- New value for the property.public NodeServiceStatusProperties.Builder setMonitorRuntimeState(java.lang.String monitorRuntimeState)
monitorRuntimeState
- New value for the property.public NodeServiceStatusProperties.Builder setPids(java.util.List<java.lang.Long> pids)
pids
- New value for the property.public NodeServiceStatusProperties.Builder setReason(java.lang.String reason)
reason
- New value for the property.public NodeServiceStatusProperties.Builder setRuntimeState(java.lang.String runtimeState)
runtimeState
- New value for the property.public NodeServiceStatusProperties build()