public final class AutomaticOSUpgradePolicy extends Object
Constructor and Description |
---|
AutomaticOSUpgradePolicy() |
Modifier and Type | Method and Description |
---|---|
Boolean |
disableAutomaticRollback()
Get the disableAutomaticRollback property: Whether OS image rollback feature should be disabled.
|
Boolean |
enableAutomaticOSUpgrade()
Get the enableAutomaticOSUpgrade property: Indicates whether OS upgrades should automatically be applied to scale
set instances in a rolling fashion when a newer version of the OS image becomes available.
|
void |
validate()
Validates the instance.
|
AutomaticOSUpgradePolicy |
withDisableAutomaticRollback(Boolean disableAutomaticRollback)
Set the disableAutomaticRollback property: Whether OS image rollback feature should be disabled.
|
AutomaticOSUpgradePolicy |
withEnableAutomaticOSUpgrade(Boolean enableAutomaticOSUpgrade)
Set the enableAutomaticOSUpgrade property: Indicates whether OS upgrades should automatically be applied to scale
set instances in a rolling fashion when a newer version of the OS image becomes available.
|
public Boolean enableAutomaticOSUpgrade()
public AutomaticOSUpgradePolicy withEnableAutomaticOSUpgrade(Boolean enableAutomaticOSUpgrade)
enableAutomaticOSUpgrade
- the enableAutomaticOSUpgrade value to set.public Boolean disableAutomaticRollback()
public AutomaticOSUpgradePolicy withDisableAutomaticRollback(Boolean disableAutomaticRollback)
disableAutomaticRollback
- the disableAutomaticRollback value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.