Package com.azure.compute.batch.models
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowsConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WindowsConfiguration from the JsonReader.Get the enableAutomaticUpdates property: Whether automatic updates are enabled on the virtual machine.setEnableAutomaticUpdates
(Boolean enableAutomaticUpdates) Set the enableAutomaticUpdates property: Whether automatic updates are enabled on the virtual machine.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WindowsConfiguration
public WindowsConfiguration()Creates an instance of WindowsConfiguration class.
-
-
Method Details
-
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
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
- Specified by:
toJson
in interfacecom.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.
-