public final class UpgradePolicy extends Object
Constructor and Description |
---|
UpgradePolicy() |
Modifier and Type | Method and Description |
---|---|
AutomaticOSUpgradePolicy |
automaticOSUpgradePolicy()
Get the automaticOSUpgradePolicy property: Configuration parameters used for performing automatic OS Upgrade.
|
UpgradeMode |
mode()
Get the mode property: Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br
/> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual
machines in the scale set.
|
RollingUpgradePolicy |
rollingUpgradePolicy()
Get the rollingUpgradePolicy property: The configuration parameters used while performing a rolling upgrade.
|
void |
validate()
Validates the instance.
|
UpgradePolicy |
withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy)
Set the automaticOSUpgradePolicy property: Configuration parameters used for performing automatic OS Upgrade.
|
UpgradePolicy |
withMode(UpgradeMode mode)
Set the mode property: Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br
/> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual
machines in the scale set.
|
UpgradePolicy |
withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)
Set the rollingUpgradePolicy property: The configuration parameters used while performing a rolling upgrade.
|
public UpgradeMode mode()
public UpgradePolicy withMode(UpgradeMode mode)
mode
- the mode value to set.public RollingUpgradePolicy rollingUpgradePolicy()
public UpgradePolicy withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)
rollingUpgradePolicy
- the rollingUpgradePolicy value to set.public AutomaticOSUpgradePolicy automaticOSUpgradePolicy()
public UpgradePolicy withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy)
automaticOSUpgradePolicy
- the automaticOSUpgradePolicy value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.