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;
Describes an upgrade policy - automatic, manual, or rolling.
/** * Describes an upgrade policy - automatic, manual, or rolling. */
public class UpgradePolicy {
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'.
/** * Specifies the mode of an upgrade to virtual machines in the scale * set.&lt;br /&gt;&lt;br /&gt; Possible values are:&lt;br /&gt;&lt;br * /&gt; **Manual** - You control the application of updates to virtual * machines in the scale set. You do this by using the manualUpgrade * action.&lt;br /&gt;&lt;br /&gt; **Automatic** - All virtual machines in * the scale set are automatically updated at the same time. Possible * values include: 'Automatic', 'Manual', 'Rolling'. */
@JsonProperty(value = "mode") private UpgradeMode mode;
The configuration parameters used while performing a rolling upgrade.
/** * The configuration parameters used while performing a rolling upgrade. */
@JsonProperty(value = "rollingUpgradePolicy") private RollingUpgradePolicy rollingUpgradePolicy;
Configuration parameters used for performing automatic OS Upgrade.
/** * Configuration parameters used for performing automatic OS Upgrade. */
@JsonProperty(value = "automaticOSUpgradePolicy") private AutomaticOSUpgradePolicy automaticOSUpgradePolicy;
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
/** * Get specifies the mode of an upgrade to virtual machines in the scale set.&lt;br /&gt;&lt;br /&gt; Possible values are:&lt;br /&gt;&lt;br /&gt; **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.&lt;br /&gt;&lt;br /&gt; **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'. * * @return the mode value */
public UpgradeMode mode() { return this.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. 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'.
Params:
  • mode – the mode value to set
Returns:the UpgradePolicy object itself.
/** * Set specifies the mode of an upgrade to virtual machines in the scale set.&lt;br /&gt;&lt;br /&gt; Possible values are:&lt;br /&gt;&lt;br /&gt; **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.&lt;br /&gt;&lt;br /&gt; **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'. * * @param mode the mode value to set * @return the UpgradePolicy object itself. */
public UpgradePolicy withMode(UpgradeMode mode) { this.mode = mode; return this; }
Get the configuration parameters used while performing a rolling upgrade.
Returns:the rollingUpgradePolicy value
/** * Get the configuration parameters used while performing a rolling upgrade. * * @return the rollingUpgradePolicy value */
public RollingUpgradePolicy rollingUpgradePolicy() { return this.rollingUpgradePolicy; }
Set the configuration parameters used while performing a rolling upgrade.
Params:
  • rollingUpgradePolicy – the rollingUpgradePolicy value to set
Returns:the UpgradePolicy object itself.
/** * Set the configuration parameters used while performing a rolling upgrade. * * @param rollingUpgradePolicy the rollingUpgradePolicy value to set * @return the UpgradePolicy object itself. */
public UpgradePolicy withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy) { this.rollingUpgradePolicy = rollingUpgradePolicy; return this; }
Get configuration parameters used for performing automatic OS Upgrade.
Returns:the automaticOSUpgradePolicy value
/** * Get configuration parameters used for performing automatic OS Upgrade. * * @return the automaticOSUpgradePolicy value */
public AutomaticOSUpgradePolicy automaticOSUpgradePolicy() { return this.automaticOSUpgradePolicy; }
Set configuration parameters used for performing automatic OS Upgrade.
Params:
  • automaticOSUpgradePolicy – the automaticOSUpgradePolicy value to set
Returns:the UpgradePolicy object itself.
/** * Set configuration parameters used for performing automatic OS Upgrade. * * @param automaticOSUpgradePolicy the automaticOSUpgradePolicy value to set * @return the UpgradePolicy object itself. */
public UpgradePolicy withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy) { this.automaticOSUpgradePolicy = automaticOSUpgradePolicy; return this; } }