Class DatabasePrincipalInner

java.lang.Object
com.azure.resourcemanager.kusto.fluent.models.DatabasePrincipalInner

public final class DatabasePrincipalInner extends Object
A class representing database principal entity.
  • Constructor Details

    • DatabasePrincipalInner

      public DatabasePrincipalInner()
  • Method Details

    • role

      public DatabasePrincipalRole role()
      Get the role property: Database principal role.
      Returns:
      the role value.
    • withRole

      Set the role property: Database principal role.
      Parameters:
      role - the role value to set.
      Returns:
      the DatabasePrincipalInner object itself.
    • name

      public String name()
      Get the name property: Database principal name.
      Returns:
      the name value.
    • withName

      public DatabasePrincipalInner withName(String name)
      Set the name property: Database principal name.
      Parameters:
      name - the name value to set.
      Returns:
      the DatabasePrincipalInner object itself.
    • type

      public DatabasePrincipalType type()
      Get the type property: Database principal type.
      Returns:
      the type value.
    • withType

      Set the type property: Database principal type.
      Parameters:
      type - the type value to set.
      Returns:
      the DatabasePrincipalInner object itself.
    • fqn

      public String fqn()
      Get the fqn property: Database principal fully qualified name.
      Returns:
      the fqn value.
    • withFqn

      public DatabasePrincipalInner withFqn(String fqn)
      Set the fqn property: Database principal fully qualified name.
      Parameters:
      fqn - the fqn value to set.
      Returns:
      the DatabasePrincipalInner object itself.
    • email

      public String email()
      Get the email property: Database principal email if exists.
      Returns:
      the email value.
    • withEmail

      public DatabasePrincipalInner withEmail(String email)
      Set the email property: Database principal email if exists.
      Parameters:
      email - the email value to set.
      Returns:
      the DatabasePrincipalInner object itself.
    • appId

      public String appId()
      Get the appId property: Application id - relevant only for application principal type.
      Returns:
      the appId value.
    • withAppId

      public DatabasePrincipalInner withAppId(String appId)
      Set the appId property: Application id - relevant only for application principal type.
      Parameters:
      appId - the appId value to set.
      Returns:
      the DatabasePrincipalInner object itself.
    • tenantName

      public String tenantName()
      Get the tenantName property: The tenant name of the principal.
      Returns:
      the tenantName value.
    • validate

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