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 Details

    • WindowsUserConfiguration

      public WindowsUserConfiguration()
      Creates an instance of WindowsUserConfiguration class.
  • Method Details

    • 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 com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.