UserIdentity Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.UserIdentity

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.

Constructor Summary

Constructor Description
UserIdentity()

Method Summary

Modifier and Type Method and Description
AutoUserSpecification 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.

UserIdentity withAutoUser(AutoUserSpecification autoUser)

Set the userName and autoUser properties are mutually exclusive; you must specify one but not both.

UserIdentity withUserName(String userName)

Set the userName and autoUser properties are mutually exclusive; you must specify one but not both.

Methods inherited from java.lang.Object

Constructor Details

UserIdentity

public UserIdentity()

Method Details

autoUser

public AutoUserSpecification autoUser()

Get the userName and autoUser properties are mutually exclusive; you must specify one but not both.

Returns:

the autoUser value

userName

public String userName()

Get the userName and autoUser properties are mutually exclusive; you must specify one but not both.

Returns:

the userName value

withAutoUser

public UserIdentity withAutoUser(AutoUserSpecification autoUser)

Set the userName and autoUser properties are mutually exclusive; you must specify one but not both.

Parameters:

autoUser - the autoUser value to set

Returns:

the UserIdentity object itself.

withUserName

public UserIdentity withUserName(String userName)

Set the userName and autoUser properties are mutually exclusive; you must specify one but not both.

Parameters:

userName - the userName value to set

Returns:

the UserIdentity object itself.

Applies to