Class LinuxVMGuestPatchAutomaticByPlatformSettings
java.lang.Object
com.azure.resourcemanager.compute.models.LinuxVMGuestPatchAutomaticByPlatformSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LinuxVMGuestPatchAutomaticByPlatformSettings>
public final class LinuxVMGuestPatchAutomaticByPlatformSettings
extends Object
implements com.azure.json.JsonSerializable<LinuxVMGuestPatchAutomaticByPlatformSettings>
Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Linux patch settings.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LinuxVMGuestPatchAutomaticByPlatformSettings class. -
Method Summary
Modifier and TypeMethodDescriptionGet the bypassPlatformSafetyChecksOnUserSchedule property: Enables customer to schedule patching without accidental upgrades.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LinuxVMGuestPatchAutomaticByPlatformSettings from the JsonReader.Get the rebootSetting property: Specifies the reboot setting for all AutomaticByPlatform patch installation operations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBypassPlatformSafetyChecksOnUserSchedule(Boolean bypassPlatformSafetyChecksOnUserSchedule) Set the bypassPlatformSafetyChecksOnUserSchedule property: Enables customer to schedule patching without accidental upgrades.Set the rebootSetting property: Specifies the reboot setting for all AutomaticByPlatform patch installation operations.Methods inherited from class 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
-
LinuxVMGuestPatchAutomaticByPlatformSettings
public LinuxVMGuestPatchAutomaticByPlatformSettings()Creates an instance of LinuxVMGuestPatchAutomaticByPlatformSettings class.
-
-
Method Details
-
rebootSetting
Get the rebootSetting property: Specifies the reboot setting for all AutomaticByPlatform patch installation operations.- Returns:
- the rebootSetting value.
-
withRebootSetting
public LinuxVMGuestPatchAutomaticByPlatformSettings withRebootSetting(LinuxVMGuestPatchAutomaticByPlatformRebootSetting rebootSetting) Set the rebootSetting property: Specifies the reboot setting for all AutomaticByPlatform patch installation operations.- Parameters:
rebootSetting- the rebootSetting value to set.- Returns:
- the LinuxVMGuestPatchAutomaticByPlatformSettings object itself.
-
bypassPlatformSafetyChecksOnUserSchedule
Get the bypassPlatformSafetyChecksOnUserSchedule property: Enables customer to schedule patching without accidental upgrades.- Returns:
- the bypassPlatformSafetyChecksOnUserSchedule value.
-
withBypassPlatformSafetyChecksOnUserSchedule
public LinuxVMGuestPatchAutomaticByPlatformSettings withBypassPlatformSafetyChecksOnUserSchedule(Boolean bypassPlatformSafetyChecksOnUserSchedule) Set the bypassPlatformSafetyChecksOnUserSchedule property: Enables customer to schedule patching without accidental upgrades.- Parameters:
bypassPlatformSafetyChecksOnUserSchedule- the bypassPlatformSafetyChecksOnUserSchedule value to set.- Returns:
- the LinuxVMGuestPatchAutomaticByPlatformSettings 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<LinuxVMGuestPatchAutomaticByPlatformSettings>- Throws:
IOException
-
fromJson
public static LinuxVMGuestPatchAutomaticByPlatformSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LinuxVMGuestPatchAutomaticByPlatformSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LinuxVMGuestPatchAutomaticByPlatformSettings 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 LinuxVMGuestPatchAutomaticByPlatformSettings.
-