Class WindowsConfiguration

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

public final class WindowsConfiguration extends Object implements com.azure.json.JsonSerializable<WindowsConfiguration>
Windows operating system settings to apply to the virtual machine.
  • Constructor Details

    • WindowsConfiguration

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

    • isEnableAutomaticUpdates

      public Boolean isEnableAutomaticUpdates()
      Get the enableAutomaticUpdates property: Whether automatic updates are enabled on the virtual machine. If omitted, the default value is true.
      Returns:
      the enableAutomaticUpdates value.
    • setEnableAutomaticUpdates

      public WindowsConfiguration setEnableAutomaticUpdates(Boolean enableAutomaticUpdates)
      Set the enableAutomaticUpdates property: Whether automatic updates are enabled on the virtual machine. If omitted, the default value is true.
      Parameters:
      enableAutomaticUpdates - the enableAutomaticUpdates value to set.
      Returns:
      the WindowsConfiguration object itself.
    • toJson

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

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