public static final class HostPrecheckResult.Builder
extends java.lang.Object
HostPrecheckResult.| Constructor and Description |
|---|
Builder(HostStatus status,
LocalizableMessage summary)
Constructor with parameters for the required properties of
HostPrecheckResult. |
| Modifier and Type | Method and Description |
|---|---|
HostPrecheckResult |
build() |
HostPrecheckResult.Builder |
setImpact(ImpactInfo impact)
This field represents the impact on the host to reach the desired configuration
state.
|
HostPrecheckResult.Builder |
setPrecheckResult(StatusInfo precheckResult)
This field represents the health check results from the host, if the host needs
to be put in maintenance mode or to be rebooted.
|
HostPrecheckResult.Builder |
setValidationErrors(java.util.List<ValidationError> validationErrors)
This field represents the validation errors if the desired configuration
specified is not valid.
|
public Builder(HostStatus status, LocalizableMessage summary)
HostPrecheckResult.public HostPrecheckResult.Builder setValidationErrors(java.util.List<ValidationError> validationErrors)
Set if #HostStatus#status is ERROR due
to host returning validation errors.validationErrors - New value for the property.public HostPrecheckResult.Builder setImpact(ImpactInfo impact)
Set if there are no validation errors on the
host. The HostStatus.getStatus() may be OK
or ERROR.impact - New value for the property.public HostPrecheckResult.Builder setPrecheckResult(StatusInfo precheckResult)
Set if there are not validation errors and
health checks are run on the host. The HostStatus.getStatus() may be OK
or ERROR.precheckResult - New value for the property.public HostPrecheckResult build()