UserAccount Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. UserAccount
- com.
Implements
public final class UserAccount
implements JsonSerializable<UserAccount>
Properties used to create a user on an Azure Batch node.
Constructor Summary
| Constructor | Description |
|---|---|
| UserAccount() |
Creates an instance of User |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Elevation |
elevationLevel()
Get the elevation |
|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
|
Linux |
linuxUserConfiguration()
Get the linux |
| String |
name()
Get the name property: The name of the user account. |
| String |
password()
Get the password property: The password for the user account. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Windows |
windowsUserConfiguration()
Get the windows |
|
User |
withElevationLevel(ElevationLevel elevationLevel)
Set the elevation |
|
User |
withLinuxUserConfiguration(LinuxUserConfiguration linuxUserConfiguration)
Set the linux |
|
User |
withName(String name)
Set the name property: The name of the user account. |
|
User |
withPassword(String password)
Set the password property: The password for the user account. |
|
User |
withWindowsUserConfiguration(WindowsUserConfiguration windowsUserConfiguration)
Set the windows |
Methods inherited from java.lang.Object
Constructor Details
UserAccount
public UserAccount()
Creates an instance of UserAccount class.
Method Details
elevationLevel
public ElevationLevel elevationLevel()
Get the elevationLevel property: nonAdmin - The auto user is a standard user without elevated access. admin - The auto user is a user with elevated access and operates with full Administrator permissions. The default value is nonAdmin.
Returns:
fromJson
public static UserAccount fromJson(JsonReader jsonReader)
Reads an instance of UserAccount from the JsonReader.
Parameters:
Returns:
Throws:
linuxUserConfiguration
public LinuxUserConfiguration linuxUserConfiguration()
Get the linuxUserConfiguration property: This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options.
Returns:
name
public String name()
Get the name property: The name of the user account. Names can contain any Unicode characters up to a maximum length of 20.
Returns:
password
public String password()
Get the password property: The password for the user account.
Returns:
toJson
validate
public void validate()
Validates the instance.
windowsUserConfiguration
public WindowsUserConfiguration windowsUserConfiguration()
Get the windowsUserConfiguration property: 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:
withElevationLevel
public UserAccount withElevationLevel(ElevationLevel elevationLevel)
Set the elevationLevel property: nonAdmin - The auto user is a standard user without elevated access. admin - The auto user is a user with elevated access and operates with full Administrator permissions. The default value is nonAdmin.
Parameters:
Returns:
withLinuxUserConfiguration
public UserAccount withLinuxUserConfiguration(LinuxUserConfiguration linuxUserConfiguration)
Set the linuxUserConfiguration property: This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options.
Parameters:
Returns:
withName
public UserAccount withName(String name)
Set the name property: The name of the user account. Names can contain any Unicode characters up to a maximum length of 20.
Parameters:
Returns:
withPassword
public UserAccount withPassword(String password)
Set the password property: The password for the user account.
Parameters:
Returns:
withWindowsUserConfiguration
public UserAccount withWindowsUserConfiguration(WindowsUserConfiguration windowsUserConfiguration)
Set the windowsUserConfiguration property: 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: