UserIdentity Class
- java.
lang. Object - com.
azure. compute. batch. models. UserIdentity
- com.
Implements
public final class UserIdentity
implements JsonSerializable<UserIdentity>
The definition of the user identity under which the Task is run. Specify either the userName or autoUser property, but not both.
Constructor Summary
| Constructor | Description |
|---|---|
| UserIdentity() |
Creates an instance of User |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
|
Auto |
getAutoUser()
Get the auto |
| String |
getUsername()
Get the username property: The name of the user identity under which the Task is run. |
|
User |
setAutoUser(AutoUserSpecification autoUser)
Set the auto |
|
User |
setUsername(String username)
Set the username property: The name of the user identity under which the Task is run. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
UserIdentity
public UserIdentity()
Creates an instance of UserIdentity class.
Method Details
fromJson
public static UserIdentity fromJson(JsonReader jsonReader)
Reads an instance of UserIdentity from the JsonReader.
Parameters:
Returns:
Throws:
getAutoUser
public AutoUserSpecification getAutoUser()
Get the autoUser property: The auto user under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.
Returns:
getUsername
public String getUsername()
Get the username property: The name of the user identity under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.
Returns:
setAutoUser
public UserIdentity setAutoUser(AutoUserSpecification autoUser)
Set the autoUser property: The auto user under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.
Parameters:
Returns:
setUsername
public UserIdentity setUsername(String username)
Set the username property: The name of the user identity under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.
Parameters:
Returns: