public static final class ComponentUpgradeStatus.Builder
extends java.lang.Object
ComponentUpgradeStatus.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
ComponentUpgradeStatus. |
| Modifier and Type | Method and Description |
|---|---|
ComponentUpgradeStatus |
build() |
ComponentUpgradeStatus.Builder |
setCanRollback(java.lang.Boolean canRollback)
This field indicates whether we can perform upgrade rollback.
|
ComponentUpgradeStatus.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.
|
ComponentUpgradeStatus.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.
|
ComponentUpgradeStatus.Builder |
setCurrentVersionNodeSummary(NodeSummaryList currentVersionNodeSummary) |
ComponentUpgradeStatus.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.
|
ComponentUpgradeStatus.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.
|
ComponentUpgradeStatus.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.
|
ComponentUpgradeStatus.Builder |
setPreUpgradeStatus(UpgradeChecksExecutionStatus preUpgradeStatus) |
ComponentUpgradeStatus.Builder |
setStatus(java.lang.String status)
Possible values are:
ComponentUpgradeStatus.STATUS_SUCCESS ComponentUpgradeStatus.STATUS_FAILED ComponentUpgradeStatus.STATUS_IN_PROGRESS ComponentUpgradeStatus.STATUS_NOT_STARTED ComponentUpgradeStatus.STATUS_PAUSING ComponentUpgradeStatus.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. |
ComponentUpgradeStatus.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()
ComponentUpgradeStatus.public ComponentUpgradeStatus.Builder setCanRollback(java.lang.Boolean canRollback)
canRollback - New value for the property.public ComponentUpgradeStatus.Builder setCanSkip(java.lang.Boolean canSkip)
canSkip - New value for the property.public ComponentUpgradeStatus.Builder setComponentType(java.lang.String componentType)
componentType - New value for the property.public ComponentUpgradeStatus.Builder setCurrentVersionNodeSummary(NodeSummaryList currentVersionNodeSummary)
currentVersionNodeSummary - New value for the property.public ComponentUpgradeStatus.Builder setDetails(java.lang.String details)
details - New value for the property.public ComponentUpgradeStatus.Builder setNodeCountAtTargetVersion(java.lang.Long nodeCountAtTargetVersion)
nodeCountAtTargetVersion - New value for the property.public ComponentUpgradeStatus.Builder setPercentComplete(java.lang.Double percentComplete)
percentComplete - New value for the property.public ComponentUpgradeStatus.Builder setPreUpgradeStatus(UpgradeChecksExecutionStatus preUpgradeStatus)
preUpgradeStatus - New value for the property.public ComponentUpgradeStatus.Builder setStatus(java.lang.String status)
status - New value for the property.public ComponentUpgradeStatus.Builder setTargetComponentVersion(java.lang.String targetComponentVersion)
targetComponentVersion - New value for the property.public ComponentUpgradeStatus build()