Class DatabaseIdentity

java.lang.Object
com.azure.resourcemanager.sql.models.DatabaseIdentity

public class DatabaseIdentity extends Object
Azure Active Directory identity configuration for a resource.
  • Constructor Details

    • DatabaseIdentity

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

    • type

      public DatabaseIdentityType type()
      Get the type property: The identity type.
      Returns:
      the type value.
    • withType

      public DatabaseIdentity withType(DatabaseIdentityType type)
      Set the type property: The identity type.
      Parameters:
      type - the type value to set.
      Returns:
      the DatabaseIdentity object itself.
    • tenantId

      public UUID tenantId()
      Get the tenantId property: The Azure Active Directory tenant id.
      Returns:
      the tenantId value.
    • userAssignedIdentities

      public Map<String,DatabaseUserIdentity> userAssignedIdentities()
      Get the userAssignedIdentities property: The resource ids of the user assigned identities to use.
      Returns:
      the userAssignedIdentities value.
    • withUserAssignedIdentities

      public DatabaseIdentity withUserAssignedIdentities(Map<String,DatabaseUserIdentity> userAssignedIdentities)
      Set the userAssignedIdentities property: The resource ids of the user assigned identities to use.
      Parameters:
      userAssignedIdentities - the userAssignedIdentities value to set.
      Returns:
      the DatabaseIdentity object itself.
    • validate

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