UserIdentity Class
- java.
lang. Object - com.
microsoft. azure. management. batch. UserIdentity
- com.
public class UserIdentity
The definition of the user identity under which the task is run. Specify either the userName or autoUser property, but not both.
Method Summary
Modifier and Type | Method and Description |
---|---|
Auto |
autoUser()
Get the userName and autoUser properties are mutually exclusive; you must specify one but not both. |
String |
userName()
Get the userName and autoUser properties are mutually exclusive; you must specify one but not both. |
User |
withAutoUser(AutoUserSpecification autoUser)
Set the userName and autoUser properties are mutually exclusive; you must specify one but not both. |
User |
withUserName(String userName)
Set the userName and autoUser properties are mutually exclusive; you must specify one but not both. |
Method Details
autoUser
public AutoUserSpecification autoUser()
Get the userName and autoUser properties are mutually exclusive; you must specify one but not both.
Returns:
userName
public String userName()
Get the userName and autoUser properties are mutually exclusive; you must specify one but not both.
Returns:
withAutoUser
public UserIdentity withAutoUser(AutoUserSpecification autoUser)
Set the userName and autoUser properties are mutually exclusive; you must specify one but not both.
Parameters:
Returns:
withUserName
public UserIdentity withUserName(String userName)
Set the userName and autoUser properties are mutually exclusive; you must specify one but not both.
Parameters:
Returns:
Applies to
Azure SDK for Java