SqlRoleAssignmentGetResultsInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cosmos. models. ArmProxyResource - com.
azure. resourcemanager. cosmos. fluent. models. SqlRoleAssignmentGetResultsInner
- com.
- com.
- com.
public final class SqlRoleAssignmentGetResultsInner
extends ArmProxyResource
An Azure Cosmos DB Role Assignment.
Constructor Summary
Constructor | Description |
---|---|
SqlRoleAssignmentGetResultsInner() |
Creates an instance of Sql |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
principalId()
Get the principal |
String |
roleDefinitionId()
Get the role |
String |
scope()
Get the scope property: The data plane resource path for which access is being granted through this Role Assignment. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Sql |
withPrincipalId(String principalId)
Set the principal |
Sql |
withRoleDefinitionId(String roleDefinitionId)
Set the role |
Sql |
withScope(String scope)
Set the scope property: The data plane resource path for which access is being granted through this Role Assignment. |
Methods inherited from ArmProxyResource
Methods inherited from java.lang.Object
Constructor Details
SqlRoleAssignmentGetResultsInner
public SqlRoleAssignmentGetResultsInner()
Creates an instance of SqlRoleAssignmentGetResultsInner class.
Method Details
fromJson
public static SqlRoleAssignmentGetResultsInner fromJson(JsonReader jsonReader)
Reads an instance of SqlRoleAssignmentGetResultsInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SqlRoleAssignmentGetResultsInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SqlRoleAssignmentGetResultsInner.name()Returns:
principalId
public String principalId()
Get the principalId property: The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
Returns:
roleDefinitionId
public String roleDefinitionId()
Get the roleDefinitionId property: The unique identifier for the associated Role Definition.
Returns:
scope
public String scope()
Get the scope property: The data plane resource path for which access is being granted through this Role Assignment.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SqlRoleAssignmentGetResultsInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SqlRoleAssignmentGetResultsInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
SqlRoleAssignmentGetResultsInner.validate()withPrincipalId
public SqlRoleAssignmentGetResultsInner withPrincipalId(String principalId)
Set the principalId property: The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
Parameters:
Returns:
withRoleDefinitionId
public SqlRoleAssignmentGetResultsInner withRoleDefinitionId(String roleDefinitionId)
Set the roleDefinitionId property: The unique identifier for the associated Role Definition.
Parameters:
Returns:
withScope
public SqlRoleAssignmentGetResultsInner withScope(String scope)
Set the scope property: The data plane resource path for which access is being granted through this Role Assignment.
Parameters:
Returns:
Applies to
Azure SDK for Java