Package com.azure.compute.batch.models
Class WindowsUserConfiguration
java.lang.Object
com.azure.compute.batch.models.WindowsUserConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WindowsUserConfiguration>
public final class WindowsUserConfiguration
extends Object
implements com.azure.json.JsonSerializable<WindowsUserConfiguration>
Properties used to create a user Account on a Windows Compute Node.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WindowsUserConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowsUserConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WindowsUserConfiguration from the JsonReader.Get the loginMode property: The login mode for the user.setLoginMode(LoginMode loginMode) Set the loginMode property: The login mode for the user.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WindowsUserConfiguration
public WindowsUserConfiguration()Creates an instance of WindowsUserConfiguration class.
-
-
Method Details
-
getLoginMode
Get the loginMode property: The login mode for the user. The default is 'batch'.- Returns:
- the loginMode value.
-
setLoginMode
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WindowsUserConfiguration>- Throws:
IOException
-
fromJson
public static WindowsUserConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-