### YamlMime:JavaType
uid: "com.microsoft.azure.management.batch.UserIdentity"
fullName: "com.microsoft.azure.management.batch.UserIdentity"
name: "UserIdentity"
nameWithType: "UserIdentity"
summary: "The definition of the user identity under which the task is run."
inheritances:
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
syntax: "public class **UserIdentity**"
constructors:
- uid: "com.microsoft.azure.management.batch.UserIdentity.UserIdentity()"
fullName: "com.microsoft.azure.management.batch.UserIdentity.UserIdentity()"
name: "UserIdentity()"
nameWithType: "UserIdentity.UserIdentity()"
syntax: "public UserIdentity()"
methods:
- uid: "com.microsoft.azure.management.batch.UserIdentity.autoUser()"
fullName: "com.microsoft.azure.management.batch.UserIdentity.autoUser()"
name: "autoUser()"
nameWithType: "UserIdentity.autoUser()"
summary: "Get the userName and autoUser properties are mutually exclusive; you must specify one but not both."
syntax: "public AutoUserSpecification autoUser()"
desc: "Get the userName and autoUser properties are mutually exclusive; you must specify one but not both."
returns:
description: "the autoUser value"
type: ""
- uid: "com.microsoft.azure.management.batch.UserIdentity.userName()"
fullName: "com.microsoft.azure.management.batch.UserIdentity.userName()"
name: "userName()"
nameWithType: "UserIdentity.userName()"
summary: "Get the userName and autoUser properties are mutually exclusive; you must specify one but not both."
syntax: "public String userName()"
desc: "Get the userName and autoUser properties are mutually exclusive; you must specify one but not both."
returns:
description: "the userName value"
type: ""
- uid: "com.microsoft.azure.management.batch.UserIdentity.withAutoUser(com.microsoft.azure.management.batch.AutoUserSpecification)"
fullName: "com.microsoft.azure.management.batch.UserIdentity.withAutoUser(AutoUserSpecification autoUser)"
name: "withAutoUser(AutoUserSpecification autoUser)"
nameWithType: "UserIdentity.withAutoUser(AutoUserSpecification autoUser)"
summary: "Set the userName and autoUser properties are mutually exclusive; you must specify one but not both."
parameters:
- description: "the autoUser value to set"
name: "autoUser"
type: ""
syntax: "public UserIdentity withAutoUser(AutoUserSpecification autoUser)"
desc: "Set the userName and autoUser properties are mutually exclusive; you must specify one but not both."
returns:
description: "the UserIdentity object itself."
type: ""
- uid: "com.microsoft.azure.management.batch.UserIdentity.withUserName(java.lang.String)"
fullName: "com.microsoft.azure.management.batch.UserIdentity.withUserName(String userName)"
name: "withUserName(String userName)"
nameWithType: "UserIdentity.withUserName(String userName)"
summary: "Set the userName and autoUser properties are mutually exclusive; you must specify one but not both."
parameters:
- description: "the userName value to set"
name: "userName"
type: ""
syntax: "public UserIdentity withUserName(String userName)"
desc: "Set the userName and autoUser properties are mutually exclusive; you must specify one but not both."
returns:
description: "the UserIdentity object itself."
type: ""
type: "class"
desc: "The definition of the user identity under which the task is run. Specify either the userName or autoUser property, but not both."
metadata: {}
package: "com.microsoft.azure.management.batch"
artifact: com.microsoft.azure:azure-mgmt-batch:1.41.4