DatabasePrincipalAssignmentInner Class

public final class DatabasePrincipalAssignmentInner
extends ProxyResource

Class representing a database principal assignment.

Constructor Summary

Constructor Description
DatabasePrincipalAssignmentInner()

Creates an instance of DatabasePrincipalAssignmentInner class.

Method Summary

Modifier and Type Method and Description
String aadObjectId()

Get the aadObjectId property: The service principal object id in AAD (Azure active directory).

String principalId()

Get the principalId property: The principal ID assigned to the database principal.

String principalName()

Get the principalName property: The principal name.

PrincipalType principalType()

Get the principalType property: Principal type.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioned state of the resource.

DatabasePrincipalRole role()

Get the role property: Database principal role.

String tenantId()

Get the tenantId property: The tenant id of the principal.

String tenantName()

Get the tenantName property: The tenant name of the principal.

void validate()

Validates the instance.

DatabasePrincipalAssignmentInner withPrincipalId(String principalId)

Set the principalId property: The principal ID assigned to the database principal.

DatabasePrincipalAssignmentInner withPrincipalType(PrincipalType principalType)

Set the principalType property: Principal type.

DatabasePrincipalAssignmentInner withRole(DatabasePrincipalRole role)

Set the role property: Database principal role.

DatabasePrincipalAssignmentInner withTenantId(String tenantId)

Set the tenantId property: The tenant id of the principal.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DatabasePrincipalAssignmentInner

public DatabasePrincipalAssignmentInner()

Creates an instance of DatabasePrincipalAssignmentInner class.

Method Details

aadObjectId

public String aadObjectId()

Get the aadObjectId property: The service principal object id in AAD (Azure active directory).

Returns:

the aadObjectId value.

principalId

public String 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.

principalName

public String principalName()

Get the principalName property: The principal name.

Returns:

the principalName value.

principalType

public PrincipalType principalType()

Get the principalType property: Principal type.

Returns:

the principalType value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioned state of the resource.

Returns:

the provisioningState value.

role

public DatabasePrincipalRole role()

Get the role property: Database principal role.

Returns:

the role value.

tenantId

public String tenantId()

Get the tenantId property: The tenant id of the principal.

Returns:

the tenantId value.

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.

withPrincipalId

public DatabasePrincipalAssignmentInner withPrincipalId(String principalId)

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.

withPrincipalType

public DatabasePrincipalAssignmentInner withPrincipalType(PrincipalType principalType)

Set the principalType property: Principal type.

Parameters:

principalType - the principalType value to set.

Returns:

the DatabasePrincipalAssignmentInner object itself.

withRole

public DatabasePrincipalAssignmentInner withRole(DatabasePrincipalRole role)

Set the role property: Database principal role.

Parameters:

role - the role value to set.

Returns:

the DatabasePrincipalAssignmentInner object itself.

withTenantId

public DatabasePrincipalAssignmentInner withTenantId(String tenantId)

Set the tenantId property: The tenant id of the principal.

Parameters:

tenantId - the tenantId value to set.

Returns:

the DatabasePrincipalAssignmentInner object itself.

Applies to