Class ResourceIdentity

java.lang.Object
com.azure.resourcemanager.databox.models.ResourceIdentity

public class ResourceIdentity extends Object
Msi identity details of the resource.
  • Constructor Details

    • ResourceIdentity

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

    • type

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

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

      public String principalId()
      Get the principalId property: Service Principal Id backing the Msi.
      Returns:
      the principalId value.
    • tenantId

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

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

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

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