Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import com.fasterxml.jackson.annotation.JsonProperty;
The configuration parameters used for performing automatic OS upgrade.
/** * The configuration parameters used for performing automatic OS upgrade. */
public class AutomaticOSUpgradePolicy {
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. Default value is false. <br><br> If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true.
/** * 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. Default value is false. &lt;br&gt;&lt;br&gt; If this * is set to true for Windows based scale sets, * [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) * is automatically set to false and cannot be set to true. */
@JsonProperty(value = "enableAutomaticOSUpgrade") private Boolean enableAutomaticOSUpgrade;
Whether OS image rollback feature should be disabled. Default value is false.
/** * Whether OS image rollback feature should be disabled. Default value is * false. */
@JsonProperty(value = "disableAutomaticRollback") private Boolean disableAutomaticRollback;
Get 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. Default value is false. <br><br> If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true.
Returns:the enableAutomaticOSUpgrade value
/** * Get 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. Default value is false. &lt;br&gt;&lt;br&gt; If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true. * * @return the enableAutomaticOSUpgrade value */
public Boolean enableAutomaticOSUpgrade() { return this.enableAutomaticOSUpgrade; }
Set 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. Default value is false. <br><br> If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true.
Params:
  • enableAutomaticOSUpgrade – the enableAutomaticOSUpgrade value to set
Returns:the AutomaticOSUpgradePolicy object itself.
/** * Set 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. Default value is false. &lt;br&gt;&lt;br&gt; If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true. * * @param enableAutomaticOSUpgrade the enableAutomaticOSUpgrade value to set * @return the AutomaticOSUpgradePolicy object itself. */
public AutomaticOSUpgradePolicy withEnableAutomaticOSUpgrade(Boolean enableAutomaticOSUpgrade) { this.enableAutomaticOSUpgrade = enableAutomaticOSUpgrade; return this; }
Get whether OS image rollback feature should be disabled. Default value is false.
Returns:the disableAutomaticRollback value
/** * Get whether OS image rollback feature should be disabled. Default value is false. * * @return the disableAutomaticRollback value */
public Boolean disableAutomaticRollback() { return this.disableAutomaticRollback; }
Set whether OS image rollback feature should be disabled. Default value is false.
Params:
  • disableAutomaticRollback – the disableAutomaticRollback value to set
Returns:the AutomaticOSUpgradePolicy object itself.
/** * Set whether OS image rollback feature should be disabled. Default value is false. * * @param disableAutomaticRollback the disableAutomaticRollback value to set * @return the AutomaticOSUpgradePolicy object itself. */
public AutomaticOSUpgradePolicy withDisableAutomaticRollback(Boolean disableAutomaticRollback) { this.disableAutomaticRollback = disableAutomaticRollback; return this; } }