WindowsConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.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
Boolean enableAutomaticUpdates()

Get the enableAutomaticUpdates property: If omitted, the default value is true.

static WindowsConfiguration fromJson(JsonReader jsonReader)

Reads an instance of WindowsConfiguration from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WindowsConfiguration withEnableAutomaticUpdates(Boolean enableAutomaticUpdates)

Set the enableAutomaticUpdates property: If omitted, the default value is true.

Methods inherited from java.lang.Object

Constructor Details

WindowsConfiguration

public WindowsConfiguration()

Creates an instance of WindowsConfiguration class.

Method Details

enableAutomaticUpdates

public Boolean enableAutomaticUpdates()

Get the enableAutomaticUpdates property: If omitted, the default value is true.

Returns:

the enableAutomaticUpdates value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnableAutomaticUpdates

public WindowsConfiguration withEnableAutomaticUpdates(Boolean enableAutomaticUpdates)

Set the enableAutomaticUpdates property: If omitted, the default value is true.

Parameters:

enableAutomaticUpdates - the enableAutomaticUpdates value to set.

Returns:

the WindowsConfiguration object itself.

Applies to