Class UpgradePolicy

java.lang.Object
com.microsoft.azure.management.compute.UpgradePolicy

public class UpgradePolicy extends Object
Describes an upgrade policy - automatic, manual, or rolling.
  • Constructor Details

    • UpgradePolicy

      public UpgradePolicy()
  • Method Details

    • mode

      public 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. 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

      public 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. 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

      public RollingUpgradePolicy rollingUpgradePolicy()
      Get the configuration parameters used while performing a rolling upgrade.
      Returns:
      the rollingUpgradePolicy value
    • withRollingUpgradePolicy

      public UpgradePolicy withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)
      Set the configuration parameters used while performing a rolling upgrade.
      Parameters:
      rollingUpgradePolicy - the rollingUpgradePolicy value to set
      Returns:
      the UpgradePolicy object itself.
    • automaticOSUpgradePolicy

      public AutomaticOSUpgradePolicy 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.