MongoMIRoleAssignmentResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cosmos. fluent. models. MongoMIRoleAssignmentResourceInner
- com.
- com.
public final class MongoMIRoleAssignmentResourceInner
extends ProxyResource
Parameters to create and update an Azure Cosmos DB MongoMI Role Assignment.
Constructor Summary
| Constructor | Description |
|---|---|
| MongoMIRoleAssignmentResourceInner() |
Creates an instance of Mongo |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Mongo |
fromJson(JsonReader jsonReader)
Reads an instance of Mongo |
| 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 |
provisioningState()
Get the provisioning |
| String |
roleDefinitionId()
Get the role |
| String |
scope()
Get the scope property: The data plane resource path for which access is being granted through this MongoMI Role Assignment. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Mongo |
withPrincipalId(String principalId)
Set the principal |
|
Mongo |
withRoleDefinitionId(String roleDefinitionId)
Set the role |
|
Mongo |
withScope(String scope)
Set the scope property: The data plane resource path for which access is being granted through this MongoMI Role Assignment. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
MongoMIRoleAssignmentResourceInner
public MongoMIRoleAssignmentResourceInner()
Creates an instance of MongoMIRoleAssignmentResourceInner class.
Method Details
fromJson
public static MongoMIRoleAssignmentResourceInner fromJson(JsonReader jsonReader)
Reads an instance of MongoMIRoleAssignmentResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
MongoMIRoleAssignmentResourceInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
MongoMIRoleAssignmentResourceInner.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 MongoMI Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: Provisioning state of the resource.
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 MongoMI Role Assignment.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MongoMIRoleAssignmentResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
MongoMIRoleAssignmentResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
withPrincipalId
public MongoMIRoleAssignmentResourceInner 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 MongoMI Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
Parameters:
Returns:
withRoleDefinitionId
public MongoMIRoleAssignmentResourceInner withRoleDefinitionId(String roleDefinitionId)
Set the roleDefinitionId property: The unique identifier for the associated Role Definition.
Parameters:
Returns:
withScope
public MongoMIRoleAssignmentResourceInner withScope(String scope)
Set the scope property: The data plane resource path for which access is being granted through this MongoMI Role Assignment.
Parameters:
Returns: