BatchAccountIdentity Class
- java.
lang. Object - com.
microsoft. azure. management. batch. BatchAccountIdentity
- com.
public class BatchAccountIdentity
The identity of the Batch account, if configured. This is used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration or when `ManagedIdentity` is selected as the auto-storage authentication mode.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
principalId()
Get the principal id of the Batch account. This property will only be provided for a system assigned identity. |
String |
tenantId()
Get the tenant id associated with the Batch account. This property will only be provided for a system assigned identity. |
Resource |
type()
Get the type of identity used for the Batch account. Possible values include: 'SystemAssigned', 'UserAssigned', 'None'. |
Map<String, User |
userAssignedIdentities()
Get the list of user identities associated with the Batch account. |
Batch |
withType(ResourceIdentityType type)
Set the type of identity used for the Batch account. Possible values include: 'SystemAssigned', 'UserAssigned', 'None'. |
Batch |
withUserAssignedIdentities(Map<String, UserAssignedIdentities> userAssignedIdentities)
Set the list of user identities associated with the Batch account. |
Method Details
principalId
public String principalId()
Get the principal id of the Batch account. This property will only be provided for a system assigned identity.
Returns:
tenantId
public String tenantId()
Get the tenant id associated with the Batch account. This property will only be provided for a system assigned identity.
Returns:
type
public ResourceIdentityType type()
Get the type of identity used for the Batch account. Possible values include: 'SystemAssigned', 'UserAssigned', 'None'.
Returns:
userAssignedIdentities
public Map
Get the list of user identities associated with the Batch account.
Returns:
withType
public BatchAccountIdentity withType(ResourceIdentityType type)
Set the type of identity used for the Batch account. Possible values include: 'SystemAssigned', 'UserAssigned', 'None'.
Parameters:
Returns:
withUserAssignedIdentities
public BatchAccountIdentity withUserAssignedIdentities(Map
Set the list of user identities associated with the Batch account.
Parameters:
Returns:
Applies to
Azure SDK for Java