java.lang.Object
com.azure.resourcemanager.purview.models.Identity

public class Identity extends Object
The Managed Identity of the resource.
  • Constructor Details

    • Identity

      public Identity()
      Creates an instance of Identity class.
  • Method Details

    • principalId

      public String principalId()
      Get the principalId property: Service principal object Id.
      Returns:
      the principalId value.
    • tenantId

      public String tenantId()
      Get the tenantId property: Tenant Id.
      Returns:
      the tenantId value.
    • type

      public Type type()
      Get the type property: Identity Type.
      Returns:
      the type value.
    • withType

      public Identity withType(Type type)
      Set the type property: Identity Type.
      Parameters:
      type - the type value to set.
      Returns:
      the Identity object itself.
    • userAssignedIdentities

      public Map<String,UserAssignedIdentity> userAssignedIdentities()
      Get the userAssignedIdentities property: User Assigned Identities.
      Returns:
      the userAssignedIdentities value.
    • withUserAssignedIdentities

      public Identity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)
      Set the userAssignedIdentities property: User Assigned Identities.
      Parameters:
      userAssignedIdentities - the userAssignedIdentities value to set.
      Returns:
      the Identity object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.