Share via


WindowsConfiguration Class

  • java.lang.Object
    • com.azure.compute.batch.models.WindowsConfiguration

Implements

public final class WindowsConfiguration
implements JsonSerializable<WindowsConfiguration>

Windows operating system settings to apply to the virtual machine.

Constructor Summary

Constructor Description
WindowsConfiguration()

Creates an instance of WindowsConfiguration class.

Method Summary

Modifier and Type Method and Description
static WindowsConfiguration fromJson(JsonReader jsonReader)

Reads an instance of WindowsConfiguration from the JsonReader.

Boolean isEnableAutomaticUpdates()

Get the enableAutomaticUpdates property: Whether automatic updates are enabled on the virtual machine.

WindowsConfiguration setEnableAutomaticUpdates(Boolean enableAutomaticUpdates)

Set the enableAutomaticUpdates property: Whether automatic updates are enabled on the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

WindowsConfiguration

public WindowsConfiguration()

Creates an instance of WindowsConfiguration class.

Method Details

fromJson

public static WindowsConfiguration fromJson(JsonReader jsonReader)

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.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to