Class UpgradePolicy
java.lang.Object
com.microsoft.azure.management.compute.UpgradePolicy
Describes an upgrade policy - automatic, manual, or rolling.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet configuration parameters used for performing automatic OS Upgrade.mode()
Get 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.Get the configuration parameters used while performing a rolling upgrade.withAutomaticOSUpgradePolicy
(AutomaticOSUpgradePolicy automaticOSUpgradePolicy) Set configuration parameters used for performing automatic OS Upgrade.withMode
(UpgradeMode mode) Set 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.withRollingUpgradePolicy
(RollingUpgradePolicy rollingUpgradePolicy) Set the configuration parameters used while performing a rolling upgrade.
-
Constructor Details
-
UpgradePolicy
public UpgradePolicy()
-
-
Method Details
-
mode
Get 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. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'.- Returns:
- the mode value
-
withMode
Set 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. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'.- Parameters:
mode
- the mode value to set- Returns:
- the UpgradePolicy object itself.
-
rollingUpgradePolicy
Get the configuration parameters used while performing a rolling upgrade.- Returns:
- the rollingUpgradePolicy value
-
withRollingUpgradePolicy
Set the configuration parameters used while performing a rolling upgrade.- Parameters:
rollingUpgradePolicy
- the rollingUpgradePolicy value to set- Returns:
- the UpgradePolicy object itself.
-
automaticOSUpgradePolicy
Get configuration parameters used for performing automatic OS Upgrade.- Returns:
- the automaticOSUpgradePolicy value
-
withAutomaticOSUpgradePolicy
public UpgradePolicy withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy) Set configuration parameters used for performing automatic OS Upgrade.- Parameters:
automaticOSUpgradePolicy
- the automaticOSUpgradePolicy value to set- Returns:
- the UpgradePolicy object itself.
-