ResourceIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ResourceIdentity
- com.
public class ResourceIdentity
Azure Active Directory identity configuration for a resource.
Constructor Summary
Constructor | Description |
---|---|
ResourceIdentity() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
UUID |
principalId()
Get the principal |
UUID |
tenantId()
Get the tenant |
Identity |
type()
Get the type property: The identity type. |
Map<String,User |
userAssignedIdentities()
Get the user |
void |
validate()
Validates the instance. |
Resource |
withType(IdentityType type)
Set the type property: The identity type. |
Resource |
withUserAssignedIdentities(Map<String,UserIdentity> userAssignedIdentities)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
ResourceIdentity
public ResourceIdentity()
Creates an instance of ResourceIdentity class.
Method Details
principalId
public UUID principalId()
Get the principalId property: The Azure Active Directory principal id.
Returns:
tenantId
public UUID tenantId()
Get the tenantId property: The Azure Active Directory tenant id.
Returns:
type
public IdentityType type()
Get the type property: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource.
Returns:
userAssignedIdentities
public Map
Get the userAssignedIdentities property: The resource ids of the user assigned identities to use.
Returns:
validate
public void validate()
Validates the instance.
withType
public ResourceIdentity withType(IdentityType type)
Set the type property: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource.
Parameters:
Returns:
withUserAssignedIdentities
public ResourceIdentity withUserAssignedIdentities(Map
Set the userAssignedIdentities property: The resource ids of the user assigned identities to use.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for