IdentityInfo Class
- java.
lang. Object - com.
microsoft. azure. management. eventgrid. v2020_04_01_preview. IdentityInfo
- com.
public class IdentityInfo
The identity information for the resource.
Constructor Summary
Constructor | Description | |
---|---|---|
IdentityInfo() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
principalId()
Get the principal ID of resource identity. |
java.lang.String |
tenantId()
Get the tenant ID of resource. |
Identity |
type()
Get the type of managed identity used. |
java.util.Map<java.lang.String,User |
userAssignedIdentities()
Get the list of user identities associated with the resource. |
Identity |
withPrincipalId(String principalId)
Set the principal ID of resource identity. |
Identity |
withTenantId(String tenantId)
Set the tenant ID of resource. |
Identity |
withType(IdentityType type)
Set the type of managed identity used. |
Identity |
withUserAssignedIdentities(Map<String,UserIdentityProperties> userAssignedIdentities)
Set the list of user identities associated with the resource. |
Methods inherited from java.lang.Object
Constructor Details
IdentityInfo
public IdentityInfo()
Method Details
principalId
public String principalId()
Get the principal ID of resource identity.
Returns:
tenantId
public String tenantId()
Get the tenant ID of resource.
Returns:
type
public IdentityType type()
Get the type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity. Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned'.
Returns:
userAssignedIdentities
public Map
Get the list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.
Returns:
withPrincipalId
public IdentityInfo withPrincipalId(String principalId)
Set the principal ID of resource identity.
Parameters:
Returns:
withTenantId
public IdentityInfo withTenantId(String tenantId)
Set the tenant ID of resource.
Parameters:
Returns:
withType
public IdentityInfo withType(IdentityType type)
Set the type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity. Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned'.
Parameters:
Returns:
withUserAssignedIdentities
public IdentityInfo withUserAssignedIdentities(Map
Set the list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.
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