Class WindowsVMGuestPatchAutomaticByPlatformSettings

java.lang.Object
com.azure.resourcemanager.compute.models.WindowsVMGuestPatchAutomaticByPlatformSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<WindowsVMGuestPatchAutomaticByPlatformSettings>

public final class WindowsVMGuestPatchAutomaticByPlatformSettings extends Object implements com.azure.json.JsonSerializable<WindowsVMGuestPatchAutomaticByPlatformSettings>
Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings.
  • Constructor Details

    • WindowsVMGuestPatchAutomaticByPlatformSettings

      public WindowsVMGuestPatchAutomaticByPlatformSettings()
      Creates an instance of WindowsVMGuestPatchAutomaticByPlatformSettings class.
  • Method Details

    • rebootSetting

      Get the rebootSetting property: Specifies the reboot setting for all AutomaticByPlatform patch installation operations.
      Returns:
      the rebootSetting value.
    • withRebootSetting

      Set the rebootSetting property: Specifies the reboot setting for all AutomaticByPlatform patch installation operations.
      Parameters:
      rebootSetting - the rebootSetting value to set.
      Returns:
      the WindowsVMGuestPatchAutomaticByPlatformSettings object itself.
    • bypassPlatformSafetyChecksOnUserSchedule

      public Boolean bypassPlatformSafetyChecksOnUserSchedule()
      Get the bypassPlatformSafetyChecksOnUserSchedule property: Enables customer to schedule patching without accidental upgrades.
      Returns:
      the bypassPlatformSafetyChecksOnUserSchedule value.
    • withBypassPlatformSafetyChecksOnUserSchedule

      public WindowsVMGuestPatchAutomaticByPlatformSettings withBypassPlatformSafetyChecksOnUserSchedule(Boolean bypassPlatformSafetyChecksOnUserSchedule)
      Set the bypassPlatformSafetyChecksOnUserSchedule property: Enables customer to schedule patching without accidental upgrades.
      Parameters:
      bypassPlatformSafetyChecksOnUserSchedule - the bypassPlatformSafetyChecksOnUserSchedule value to set.
      Returns:
      the WindowsVMGuestPatchAutomaticByPlatformSettings object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WindowsVMGuestPatchAutomaticByPlatformSettings>
      Throws:
      IOException
    • fromJson

      public static WindowsVMGuestPatchAutomaticByPlatformSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WindowsVMGuestPatchAutomaticByPlatformSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WindowsVMGuestPatchAutomaticByPlatformSettings 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 WindowsVMGuestPatchAutomaticByPlatformSettings.