Class DatabasePrincipalProperties
- java.lang.Object
-
- com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalProperties
-
public final class DatabasePrincipalProperties extends Object
A class representing database principal property.
-
-
Constructor Summary
Constructors Constructor Description DatabasePrincipalProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.ResourceProvisioningState
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.DatabasePrincipalProperties
withPrincipalId(String principalId)
Set the principalId property: The principal ID assigned to the database principal.DatabasePrincipalProperties
withPrincipalType(PrincipalType principalType)
Set the principalType property: Principal type.DatabasePrincipalProperties
withRole(DatabasePrincipalRole role)
Set the role property: Database principal role.DatabasePrincipalProperties
withTenantId(String tenantId)
Set the tenantId property: The tenant id of the principal.
-
-
-
Method Detail
-
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.
-
withPrincipalId
public DatabasePrincipalProperties 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 DatabasePrincipalProperties object itself.
-
role
public DatabasePrincipalRole role()
Get the role property: Database principal role.- Returns:
- the role value.
-
withRole
public DatabasePrincipalProperties withRole(DatabasePrincipalRole role)
Set the role property: Database principal role.- Parameters:
role
- the role value to set.- Returns:
- the DatabasePrincipalProperties object itself.
-
tenantId
public String tenantId()
Get the tenantId property: The tenant id of the principal.- Returns:
- the tenantId value.
-
withTenantId
public DatabasePrincipalProperties withTenantId(String tenantId)
Set the tenantId property: The tenant id of the principal.- Parameters:
tenantId
- the tenantId value to set.- Returns:
- the DatabasePrincipalProperties object itself.
-
principalType
public PrincipalType principalType()
Get the principalType property: Principal type.- Returns:
- the principalType value.
-
withPrincipalType
public DatabasePrincipalProperties withPrincipalType(PrincipalType principalType)
Set the principalType property: Principal type.- Parameters:
principalType
- the principalType value to set.- Returns:
- the DatabasePrincipalProperties object itself.
-
tenantName
public String tenantName()
Get the tenantName property: The tenant name of the principal.- Returns:
- the tenantName value.
-
principalName
public String principalName()
Get the principalName property: The principal name.- Returns:
- the principalName value.
-
provisioningState
public ResourceProvisioningState provisioningState()
Get the provisioningState property: The provisioned state of the resource.- Returns:
- the provisioningState value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-