public static final class ClustersTypes.UpgradeSpec.Builder
extends java.lang.Object
ClustersTypes.UpgradeSpec
.Constructor and Description |
---|
Builder(java.lang.String desiredVersion)
Constructor with parameters for the required properties of
ClustersTypes.UpgradeSpec . |
Modifier and Type | Method and Description |
---|---|
ClustersTypes.UpgradeSpec |
build() |
ClustersTypes.UpgradeSpec.Builder |
setIgnorePrecheckWarnings(java.lang.Boolean ignorePrecheckWarnings)
If true, the upgrade workflow will ignore any pre-check warnings and proceed
with the upgrade.
|
public Builder(java.lang.String desiredVersion)
ClustersTypes.UpgradeSpec
.public ClustersTypes.UpgradeSpec.Builder setIgnorePrecheckWarnings(java.lang.Boolean ignorePrecheckWarnings)
null
, the upgrade workflow will not ignore pre-check warnings and
fail the upgrade. It is equivalent to setting the value to false. The workflow
adopts a conservative approach of failing the upgrade if null
to solely
let the user decide whether to force the upgrade despite the warnings.ignorePrecheckWarnings
- New value for the property.public ClustersTypes.UpgradeSpec build()