MongoRoleDefinitionGetResultsInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cosmos. fluent. models. MongoRoleDefinitionGetResultsInner
- com.
- com.
public final class MongoRoleDefinitionGetResultsInner
extends ProxyResource
An Azure Cosmos DB Mongo Role Definition.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
databaseName()
Get the database |
|
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. |
| List<Privilege> |
privileges()
Get the privileges property: A set of privileges contained by the Role Definition. |
| String |
roleName()
Get the role |
| List<Role> |
roles()
Get the roles property: The set of roles inherited by this Role Definition. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
|
Mongo |
typePropertiesType()
Get the type property: Indicates whether the Role Definition was built-in or user created. |
| void |
validate()
Validates the instance. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Method Details
databaseName
public String databaseName()
Get the databaseName property: The database name for which access is being granted for this Role Definition.
Returns:
fromJson
public static MongoRoleDefinitionGetResultsInner fromJson(JsonReader jsonReader)
Reads an instance of MongoRoleDefinitionGetResultsInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
MongoRoleDefinitionGetResultsInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
MongoRoleDefinitionGetResultsInner.name()Returns:
privileges
public List<Privilege> privileges()
Get the privileges property: A set of privileges contained by the Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Scopes higher than Database are not enforceable as privilege.
Returns:
roleName
public String roleName()
Get the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.
Returns:
roles
public List<Role> roles()
Get the roles property: The set of roles inherited by this Role Definition.
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:
MongoRoleDefinitionGetResultsInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
MongoRoleDefinitionGetResultsInner.type()Returns:
typePropertiesType
public MongoRoleDefinitionType typePropertiesType()
Get the type property: Indicates whether the Role Definition was built-in or user created.
Returns:
validate
public void validate()
Validates the instance.