Class LinuxPatchSettings
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.LinuxPatchSettings
-
public final class LinuxPatchSettings extends Object
Specifies settings related to VM Guest Patching on Linux.
-
-
Constructor Summary
Constructors Constructor Description LinuxPatchSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinuxPatchAssessmentModeassessmentMode()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.LinuxVMGuestPatchModepatchMode()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.voidvalidate()Validates the instance.LinuxPatchSettingswithAssessmentMode(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.LinuxPatchSettingswithPatchMode(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.
-
-
-
Method Detail
-
patchMode
public LinuxVMGuestPatchMode 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
public LinuxPatchSettings 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. <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
public LinuxPatchAssessmentMode 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
public LinuxPatchSettings 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. <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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-