public class UpgradePolicy extends Object
| Constructor and Description |
|---|
UpgradePolicy() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
automaticOSUpgrade()
Get whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available.
|
AutoOSUpgradePolicy |
autoOSUpgradePolicy()
Get configuration parameters used for performing automatic OS Upgrade.
|
UpgradeMode |
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.
|
RollingUpgradePolicy |
rollingUpgradePolicy()
Get the configuration parameters used while performing a rolling upgrade.
|
UpgradePolicy |
withAutomaticOSUpgrade(Boolean automaticOSUpgrade)
Set whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available.
|
UpgradePolicy |
withAutoOSUpgradePolicy(AutoOSUpgradePolicy autoOSUpgradePolicy)
Set configuration parameters used for performing automatic OS Upgrade.
|
UpgradePolicy |
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.
|
UpgradePolicy |
withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)
Set the configuration parameters used while performing a rolling upgrade.
|
public UpgradeMode mode()
public UpgradePolicy withMode(UpgradeMode mode)
mode - the mode value to setpublic RollingUpgradePolicy rollingUpgradePolicy()
public UpgradePolicy withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)
rollingUpgradePolicy - the rollingUpgradePolicy value to setpublic Boolean automaticOSUpgrade()
public UpgradePolicy withAutomaticOSUpgrade(Boolean automaticOSUpgrade)
automaticOSUpgrade - the automaticOSUpgrade value to setpublic AutoOSUpgradePolicy autoOSUpgradePolicy()
public UpgradePolicy withAutoOSUpgradePolicy(AutoOSUpgradePolicy autoOSUpgradePolicy)
autoOSUpgradePolicy - the autoOSUpgradePolicy value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/