UpgradePolicy Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. UpgradePolicy
- com.
public class UpgradePolicy
Describes an upgrade policy - automatic, manual, or rolling.
Constructor Summary
Constructor | Description | |
---|---|---|
UpgradePolicy() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Automatic |
automaticOSUpgradePolicy()
Get the configuration parameters used for performing automatic OS upgrade. |
Upgrade |
mode()
Get possible values include: 'automatic', 'manual', 'rolling'. |
Rolling |
rollingUpgradePolicy()
Get this property is only supported on Pools with the virtual |
Upgrade |
withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy)
Set the configuration parameters used for performing automatic OS upgrade. |
Upgrade |
withMode(UpgradeMode mode)
Set possible values include: 'automatic', 'manual', 'rolling'. |
Upgrade |
withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)
Set this property is only supported on Pools with the virtual |
Methods inherited from java.lang.Object
Constructor Details
UpgradePolicy
public UpgradePolicy()
Method Details
automaticOSUpgradePolicy
public AutomaticOSUpgradePolicy automaticOSUpgradePolicy()
Get the configuration parameters used for performing automatic OS upgrade.
Returns:
mode
public UpgradeMode mode()
Get possible values include: 'automatic', 'manual', 'rolling'.
Returns:
rollingUpgradePolicy
public RollingUpgradePolicy rollingUpgradePolicy()
Get this property is only supported on Pools with the virtualMachineConfiguration property.
Returns:
withAutomaticOSUpgradePolicy
public UpgradePolicy withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy)
Set the configuration parameters used for performing automatic OS upgrade.
Parameters:
Returns:
withMode
public UpgradePolicy withMode(UpgradeMode mode)
Set possible values include: 'automatic', 'manual', 'rolling'.
Parameters:
Returns:
withRollingUpgradePolicy
public UpgradePolicy withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)
Set this property is only supported on Pools with the virtualMachineConfiguration property.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for