Class ServicePrincipal

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

public final class ServicePrincipal extends Object
The managed instance's service principal configuration for a resource.
  • Constructor Details

    • ServicePrincipal

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

    • principalId

      public String principalId()
      Get the principalId property: The Azure Active Directory application object id.
      Returns:
      the principalId value.
    • clientId

      public String clientId()
      Get the clientId property: The Azure Active Directory application client id.
      Returns:
      the clientId value.
    • tenantId

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

      public ServicePrincipalType type()
      Get the type property: Service principal type.
      Returns:
      the type value.
    • withType

      public ServicePrincipal withType(ServicePrincipalType type)
      Set the type property: Service principal type.
      Parameters:
      type - the type value to set.
      Returns:
      the ServicePrincipal object itself.
    • validate

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