Class LinuxPatchSettings
java.lang.Object
com.azure.resourcemanager.compute.models.LinuxPatchSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LinuxPatchSettings>
public final class LinuxPatchSettings
extends Object
implements com.azure.json.JsonSerializable<LinuxPatchSettings>
Specifies settings related to VM Guest Patching on Linux.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the assessmentMode property: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.Get the automaticByPlatformSettings property: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux.static LinuxPatchSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LinuxPatchSettings from the JsonReader.Get the patchMode property: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAssessmentMode(LinuxPatchAssessmentMode assessmentMode) Set the assessmentMode property: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.withAutomaticByPlatformSettings(LinuxVMGuestPatchAutomaticByPlatformSettings automaticByPlatformSettings) Set the automaticByPlatformSettings property: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux.withPatchMode(LinuxVMGuestPatchMode patchMode) Set the patchMode property: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LinuxPatchSettings
public LinuxPatchSettings()Creates an instance of LinuxPatchSettings class.
-
-
Method Details
-
patchMode
Get the patchMode property: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used. <br /><br /> **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true.- Returns:
- the patchMode value.
-
withPatchMode
Set the patchMode property: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used. <br /><br /> **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true.- Parameters:
patchMode- the patchMode value to set.- Returns:
- the LinuxPatchSettings object itself.
-
assessmentMode
Get the assessmentMode property: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.- Returns:
- the assessmentMode value.
-
withAssessmentMode
Set the assessmentMode property: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.- Parameters:
assessmentMode- the assessmentMode value to set.- Returns:
- the LinuxPatchSettings object itself.
-
automaticByPlatformSettings
Get the automaticByPlatformSettings property: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux.- Returns:
- the automaticByPlatformSettings value.
-
withAutomaticByPlatformSettings
public LinuxPatchSettings withAutomaticByPlatformSettings(LinuxVMGuestPatchAutomaticByPlatformSettings automaticByPlatformSettings) Set the automaticByPlatformSettings property: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux.- Parameters:
automaticByPlatformSettings- the automaticByPlatformSettings value to set.- Returns:
- the LinuxPatchSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LinuxPatchSettings>- Throws:
IOException
-
fromJson
Reads an instance of LinuxPatchSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LinuxPatchSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the LinuxPatchSettings.
-