public static final class HostUpgradeStatus.Builder
extends java.lang.Object
HostUpgradeStatus
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
HostUpgradeStatus . |
Modifier and Type | Method and Description |
---|---|
HostUpgradeStatus |
build() |
HostUpgradeStatus.Builder |
setCanRollback(java.lang.Boolean canRollback)
This field indicates whether we can perform upgrade rollback.
|
HostUpgradeStatus.Builder |
setCanSkip(java.lang.Boolean canSkip)
Can the upgrade of the remaining units in this component be skipped
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
HostUpgradeStatus.Builder |
setComponentType(java.lang.String componentType)
Component type for the upgrade status
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
HostUpgradeStatus.Builder |
setCurrentVersionNodeSummary(NodeSummaryList currentVersionNodeSummary) |
HostUpgradeStatus.Builder |
setDetails(java.lang.String details)
Details about the upgrade status
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
HostUpgradeStatus.Builder |
setNodeCountAtTargetVersion(java.lang.Long nodeCountAtTargetVersion)
Number of nodes of the type and at the component version format: int32
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
HostUpgradeStatus.Builder |
setPercentComplete(java.lang.Double percentComplete)
Indicator of upgrade progress in percentage
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
HostUpgradeStatus.Builder |
setPreUpgradeStatus(UpgradeChecksExecutionStatus preUpgradeStatus) |
HostUpgradeStatus.Builder |
setStatus(java.lang.String status)
Possible values are:
HostUpgradeStatus.STATUS_SUCCESS HostUpgradeStatus.STATUS_FAILED HostUpgradeStatus.STATUS_IN_PROGRESS HostUpgradeStatus.STATUS_NOT_STARTED HostUpgradeStatus.STATUS_PAUSING HostUpgradeStatus.STATUS_PAUSED Upgrade status
of component
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
HostUpgradeStatus.Builder |
setTargetComponentVersion(java.lang.String targetComponentVersion)
Target component version
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
public Builder()
HostUpgradeStatus
.public HostUpgradeStatus.Builder setCanRollback(java.lang.Boolean canRollback)
canRollback
- New value for the property.public HostUpgradeStatus.Builder setCanSkip(java.lang.Boolean canSkip)
canSkip
- New value for the property.public HostUpgradeStatus.Builder setComponentType(java.lang.String componentType)
componentType
- New value for the property.public HostUpgradeStatus.Builder setCurrentVersionNodeSummary(NodeSummaryList currentVersionNodeSummary)
currentVersionNodeSummary
- New value for the property.public HostUpgradeStatus.Builder setDetails(java.lang.String details)
details
- New value for the property.public HostUpgradeStatus.Builder setNodeCountAtTargetVersion(java.lang.Long nodeCountAtTargetVersion)
nodeCountAtTargetVersion
- New value for the property.public HostUpgradeStatus.Builder setPercentComplete(java.lang.Double percentComplete)
percentComplete
- New value for the property.public HostUpgradeStatus.Builder setPreUpgradeStatus(UpgradeChecksExecutionStatus preUpgradeStatus)
preUpgradeStatus
- New value for the property.public HostUpgradeStatus.Builder setStatus(java.lang.String status)
status
- New value for the property.public HostUpgradeStatus.Builder setTargetComponentVersion(java.lang.String targetComponentVersion)
targetComponentVersion
- New value for the property.public HostUpgradeStatus build()