Class BatchAccountIdentity
java.lang.Object
com.azure.resourcemanager.batch.models.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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: The principal id of the Batch account.tenantId()
Get the tenantId property: The tenant id associated with the Batch account.type()
Get the type property: The type of identity used for the Batch account.Get the userAssignedIdentities property: The list of user identities associated with the Batch account.void
validate()
Validates the instance.withType
(ResourceIdentityType type) Set the type property: The type of identity used for the Batch account.withUserAssignedIdentities
(Map<String, UserAssignedIdentities> userAssignedIdentities) Set the userAssignedIdentities property: The list of user identities associated with the Batch account.
-
Constructor Details
-
BatchAccountIdentity
public BatchAccountIdentity()Creates an instance of BatchAccountIdentity class.
-
-
Method Details
-
principalId
Get the principalId property: The principal id of the Batch account. This property will only be provided for a system assigned identity.- Returns:
- the principalId value.
-
tenantId
Get the tenantId property: The tenant id associated with the Batch account. This property will only be provided for a system assigned identity.- Returns:
- the tenantId value.
-
type
Get the type property: The type of identity used for the Batch account.- Returns:
- the type value.
-
withType
Set the type property: The type of identity used for the Batch account.- Parameters:
type
- the type value to set.- Returns:
- the BatchAccountIdentity object itself.
-
userAssignedIdentities
Get the userAssignedIdentities property: The list of user identities associated with the Batch account.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public BatchAccountIdentity withUserAssignedIdentities(Map<String, UserAssignedIdentities> userAssignedIdentities) Set the userAssignedIdentities property: The list of user identities associated with the Batch account.- Parameters:
userAssignedIdentities
- the userAssignedIdentities value to set.- Returns:
- the BatchAccountIdentity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-