UserAccount Class
- java.
lang. Object - com.
microsoft. azure. management. batch. UserAccount
- com.
public class UserAccount
Properties used to create a user on an Azure Batch node.
Method Summary
Modifier and Type | Method and Description |
---|---|
Elevation |
elevationLevel()
Get 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. Possible values include: 'NonAdmin', 'Admin'. |
Linux |
linuxUserConfiguration()
Get this property is ignored if specified on a Windows pool. If not specified, the user is created with the default options. |
String |
name()
Get the name value. |
String |
password()
Get the password value. |
Windows |
windowsUserConfiguration()
Get 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. |
User |
withElevationLevel(ElevationLevel elevationLevel)
Set 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. Possible values include: 'NonAdmin', 'Admin'. |
User |
withLinuxUserConfiguration(LinuxUserConfiguration linuxUserConfiguration)
Set this property is ignored if specified on a Windows pool. If not specified, the user is created with the default options. |
User |
withName(String name)
Set the name value. |
User |
withPassword(String password)
Set the password value. |
User |
withWindowsUserConfiguration(WindowsUserConfiguration windowsUserConfiguration)
Set 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. |
Method Details
elevationLevel
public ElevationLevel elevationLevel()
Get 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. Possible values include: 'NonAdmin', 'Admin'.
Returns:
linuxUserConfiguration
public LinuxUserConfiguration linuxUserConfiguration()
Get 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 value.
Returns:
password
public String password()
Get the password value.
Returns:
windowsUserConfiguration
public WindowsUserConfiguration windowsUserConfiguration()
Get 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 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. Possible values include: 'NonAdmin', 'Admin'.
Parameters:
Returns:
withLinuxUserConfiguration
public UserAccount withLinuxUserConfiguration(LinuxUserConfiguration linuxUserConfiguration)
Set 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 value.
Parameters:
Returns:
withPassword
public UserAccount withPassword(String password)
Set the password value.
Parameters:
Returns:
withWindowsUserConfiguration
public UserAccount withWindowsUserConfiguration(WindowsUserConfiguration windowsUserConfiguration)
Set 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:
Applies to
Azure SDK for Java