UserIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. 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 |
|---|---|
|
Auto |
autoUser()
Get the auto |
|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: The user |
| void |
validate()
Validates the instance. |
|
User |
withAutoUser(AutoUserSpecification autoUser)
Set the auto |
|
User |
withUsername(String username)
Set the username property: The user |
Methods inherited from java.lang.Object
Constructor Details
UserIdentity
public UserIdentity()
Creates an instance of UserIdentity class.
Method Details
autoUser
public AutoUserSpecification autoUser()
Get the autoUser property: The userName and autoUser properties are mutually exclusive; you must specify one but not both.
Returns:
fromJson
public static UserIdentity fromJson(JsonReader jsonReader)
Reads an instance of UserIdentity from the JsonReader.
Parameters:
Returns:
Throws:
toJson
username
public String username()
Get the username property: The userName and autoUser properties are mutually exclusive; you must specify one but not both.
Returns:
validate
public void validate()
Validates the instance.
withAutoUser
public UserIdentity withAutoUser(AutoUserSpecification autoUser)
Set the autoUser property: 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 property: The userName and autoUser properties are mutually exclusive; you must specify one but not both.
Parameters:
Returns: