Class DatabasePrincipalAssignmentInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.kusto.fluent.models.DatabasePrincipalAssignmentInner
public final class DatabasePrincipalAssignmentInner
extends com.azure.core.management.ProxyResource
Class representing a database principal assignment.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aadObjectId property: The service principal object id in AAD (Azure active directory).Get the principalId property: The principal ID assigned to the database principal.Get the principalName property: The principal name.Get the principalType property: Principal type.Get the provisioningState property: The provisioned state of the resource.role()
Get the role property: Database principal role.tenantId()
Get the tenantId property: The tenant id of the principal.Get the tenantName property: The tenant name of the principal.void
validate()
Validates the instance.withPrincipalId
(String principalId) Set the principalId property: The principal ID assigned to the database principal.withPrincipalType
(PrincipalType principalType) Set the principalType property: Principal type.Set the role property: Database principal role.withTenantId
(String tenantId) Set the tenantId property: The tenant id of the principal.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
DatabasePrincipalAssignmentInner
public DatabasePrincipalAssignmentInner()
-
-
Method Details
-
principalId
Get the principalId property: The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.- Returns:
- the principalId value.
-
withPrincipalId
Set the principalId property: The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.- Parameters:
principalId
- the principalId value to set.- Returns:
- the DatabasePrincipalAssignmentInner object itself.
-
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 DatabasePrincipalAssignmentInner object itself.
-
tenantId
Get the tenantId property: The tenant id of the principal.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: The tenant id of the principal.- Parameters:
tenantId
- the tenantId value to set.- Returns:
- the DatabasePrincipalAssignmentInner object itself.
-
principalType
Get the principalType property: Principal type.- Returns:
- the principalType value.
-
withPrincipalType
Set the principalType property: Principal type.- Parameters:
principalType
- the principalType value to set.- Returns:
- the DatabasePrincipalAssignmentInner object itself.
-
tenantName
Get the tenantName property: The tenant name of the principal.- Returns:
- the tenantName value.
-
principalName
Get the principalName property: The principal name.- Returns:
- the principalName value.
-
provisioningState
Get the provisioningState property: The provisioned state of the resource.- Returns:
- the provisioningState value.
-
aadObjectId
Get the aadObjectId property: The service principal object id in AAD (Azure active directory).- Returns:
- the aadObjectId value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-