UserAccount Class
- java.
lang. Object - com.
azure. compute. batch. models. UserAccount
- com.
Implements
public final class UserAccount
implements JsonSerializable<UserAccount>
Properties used to create a user used to execute Tasks on an Azure Batch Compute Node.
Constructor Summary
| Constructor | Description |
|---|---|
| UserAccount(String name, String password) |
Creates an instance of User |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
|
Elevation |
getElevationLevel()
Get the elevation |
|
Linux |
getLinuxUserConfiguration()
Get the linux |
| String |
getName()
Get the name property: The name of the user Account. |
| String |
getPassword()
Get the password property: The password for the user Account. |
|
Windows |
getWindowsUserConfiguration()
Get the windows |
|
User |
setElevationLevel(ElevationLevel elevationLevel)
Set the elevation |
|
User |
setLinuxUserConfiguration(LinuxUserConfiguration linuxUserConfiguration)
Set the linux |
|
User |
setWindowsUserConfiguration(WindowsUserConfiguration windowsUserConfiguration)
Set the windows |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
UserAccount
public UserAccount(String name, String password)
Creates an instance of UserAccount class.
Parameters:
Method Details
fromJson
public static UserAccount fromJson(JsonReader jsonReader)
Reads an instance of UserAccount from the JsonReader.
Parameters:
Returns:
Throws:
getElevationLevel
public ElevationLevel getElevationLevel()
Get the elevationLevel property: The elevation level of the user Account. The default value is nonAdmin.
Returns:
getLinuxUserConfiguration
public LinuxUserConfiguration getLinuxUserConfiguration()
Get the linuxUserConfiguration property: The Linux-specific user configuration for the user Account. This property is ignored if specified on a Windows Pool. If not specified, the user is created with the default options.
Returns:
getName
public String getName()
Get the name property: The name of the user Account. Names can contain any Unicode characters up to a maximum length of 20.
Returns:
getPassword
public String getPassword()
Get the password property: The password for the user Account.
Returns:
getWindowsUserConfiguration
public WindowsUserConfiguration getWindowsUserConfiguration()
Get the windowsUserConfiguration property: The Windows-specific user configuration for the user Account. This property can only be specified if the user is on a Windows Pool. If not specified and on a Windows Pool, the user is created with the default options.
Returns:
setElevationLevel
public UserAccount setElevationLevel(ElevationLevel elevationLevel)
Set the elevationLevel property: The elevation level of the user Account. The default value is nonAdmin.
Parameters:
Returns:
setLinuxUserConfiguration
public UserAccount setLinuxUserConfiguration(LinuxUserConfiguration linuxUserConfiguration)
Set the linuxUserConfiguration property: The Linux-specific user configuration for the user Account. This property is ignored if specified on a Windows Pool. If not specified, the user is created with the default options.
Parameters:
Returns:
setWindowsUserConfiguration
public UserAccount setWindowsUserConfiguration(WindowsUserConfiguration windowsUserConfiguration)
Set the windowsUserConfiguration property: The Windows-specific user configuration for the user Account. This property can only be specified if the user is on a Windows Pool. If not specified and on a Windows Pool, the user is created with the default options.
Parameters:
Returns: