Class WindowsProperties

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

public final class WindowsProperties extends Object implements com.azure.json.JsonSerializable<WindowsProperties>
Windows specific update configuration.
  • Constructor Details

    • WindowsProperties

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

    • includedUpdateClassifications

      public WindowsUpdateClasses includedUpdateClassifications()
      Get the includedUpdateClassifications property: Update classification included in the software update configuration. A comma separated string with required values.
      Returns:
      the includedUpdateClassifications value.
    • withIncludedUpdateClassifications

      public WindowsProperties withIncludedUpdateClassifications(WindowsUpdateClasses includedUpdateClassifications)
      Set the includedUpdateClassifications property: Update classification included in the software update configuration. A comma separated string with required values.
      Parameters:
      includedUpdateClassifications - the includedUpdateClassifications value to set.
      Returns:
      the WindowsProperties object itself.
    • excludedKbNumbers

      public List<String> excludedKbNumbers()
      Get the excludedKbNumbers property: KB numbers excluded from the software update configuration.
      Returns:
      the excludedKbNumbers value.
    • withExcludedKbNumbers

      public WindowsProperties withExcludedKbNumbers(List<String> excludedKbNumbers)
      Set the excludedKbNumbers property: KB numbers excluded from the software update configuration.
      Parameters:
      excludedKbNumbers - the excludedKbNumbers value to set.
      Returns:
      the WindowsProperties object itself.
    • includedKbNumbers

      public List<String> includedKbNumbers()
      Get the includedKbNumbers property: KB numbers included from the software update configuration.
      Returns:
      the includedKbNumbers value.
    • withIncludedKbNumbers

      public WindowsProperties withIncludedKbNumbers(List<String> includedKbNumbers)
      Set the includedKbNumbers property: KB numbers included from the software update configuration.
      Parameters:
      includedKbNumbers - the includedKbNumbers value to set.
      Returns:
      the WindowsProperties object itself.
    • rebootSetting

      public String rebootSetting()
      Get the rebootSetting property: Reboot setting for the software update configuration.
      Returns:
      the rebootSetting value.
    • withRebootSetting

      public WindowsProperties withRebootSetting(String rebootSetting)
      Set the rebootSetting property: Reboot setting for the software update configuration.
      Parameters:
      rebootSetting - the rebootSetting value to set.
      Returns:
      the WindowsProperties 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<WindowsProperties>
      Throws:
      IOException
    • fromJson

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