Share via


WindowsUserConfiguration Class

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

Implements

public final class WindowsUserConfiguration
implements JsonSerializable<WindowsUserConfiguration>

Properties used to create a user Account on a Windows Compute Node.

Constructor Summary

Constructor Description
WindowsUserConfiguration()

Creates an instance of WindowsUserConfiguration class.

Method Summary

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

Reads an instance of WindowsUserConfiguration from the JsonReader.

LoginMode getLoginMode()

Get the loginMode property: The login mode for the user.

WindowsUserConfiguration setLoginMode(LoginMode loginMode)

Set the loginMode property: The login mode for the user.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

WindowsUserConfiguration

public WindowsUserConfiguration()

Creates an instance of WindowsUserConfiguration class.

Method Details

fromJson

public static WindowsUserConfiguration fromJson(JsonReader jsonReader)

Reads an instance of WindowsUserConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WindowsUserConfiguration 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 WindowsUserConfiguration.

getLoginMode

public LoginMode getLoginMode()

Get the loginMode property: The login mode for the user. The default is 'batch'.

Returns:

the loginMode value.

setLoginMode

public WindowsUserConfiguration setLoginMode(LoginMode loginMode)

Set the loginMode property: The login mode for the user. The default is 'batch'.

Parameters:

loginMode - the loginMode value to set.

Returns:

the WindowsUserConfiguration object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to