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 Summary
Constructors Constructor Description DatabasePrincipalInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
appId()
Get the appId property: Application id - relevant only for application principal type.String
email()
Get the email property: Database principal email if exists.String
fqn()
Get the fqn property: Database principal fully qualified name.String
name()
Get the name property: Database principal name.DatabasePrincipalRole
role()
Get the role property: Database principal role.String
tenantName()
Get the tenantName property: The tenant name of the principal.DatabasePrincipalType
type()
Get the type property: Database principal type.void
validate()
Validates the instance.DatabasePrincipalInner
withAppId(String appId)
Set the appId property: Application id - relevant only for application principal type.DatabasePrincipalInner
withEmail(String email)
Set the email property: Database principal email if exists.DatabasePrincipalInner
withFqn(String fqn)
Set the fqn property: Database principal fully qualified name.DatabasePrincipalInner
withName(String name)
Set the name property: Database principal name.DatabasePrincipalInner
withRole(DatabasePrincipalRole role)
Set the role property: Database principal role.DatabasePrincipalInner
withType(DatabasePrincipalType type)
Set the type property: Database principal type.
-
-
-
Method Detail
-
role
public DatabasePrincipalRole role()
Get the role property: Database principal role.- Returns:
- the role value.
-
withRole
public DatabasePrincipalInner withRole(DatabasePrincipalRole role)
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
public DatabasePrincipalInner withType(DatabasePrincipalType type)
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.
-
-