Class AutomaticOSUpgradeProperties
java.lang.Object
com.azure.resourcemanager.compute.models.AutomaticOSUpgradeProperties
Describes automatic OS upgrade properties on the image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the automaticOSUpgradeSupported property: Specifies whether automatic OS upgrade is supported on the image.voidvalidate()Validates the instance.withAutomaticOSUpgradeSupported(boolean automaticOSUpgradeSupported) Set the automaticOSUpgradeSupported property: Specifies whether automatic OS upgrade is supported on the image.
-
Constructor Details
-
AutomaticOSUpgradeProperties
public AutomaticOSUpgradeProperties()
-
-
Method Details
-
automaticOSUpgradeSupported
public boolean automaticOSUpgradeSupported()Get the automaticOSUpgradeSupported property: Specifies whether automatic OS upgrade is supported on the image.- Returns:
- the automaticOSUpgradeSupported value.
-
withAutomaticOSUpgradeSupported
public AutomaticOSUpgradeProperties withAutomaticOSUpgradeSupported(boolean automaticOSUpgradeSupported) Set the automaticOSUpgradeSupported property: Specifies whether automatic OS upgrade is supported on the image.- Parameters:
automaticOSUpgradeSupported- the automaticOSUpgradeSupported value to set.- Returns:
- the AutomaticOSUpgradeProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-