Class MongoRoleDefinitionGetResultsInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.cosmos.models.ArmProxyResource
com.azure.resourcemanager.cosmos.fluent.models.MongoRoleDefinitionGetResultsInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
An Azure Cosmos DB Mongo Role Definition.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MongoRoleDefinitionGetResultsInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the databaseName property: The database name for which access is being granted for this Role Definition.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MongoRoleDefinitionGetResultsInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.name()
Get the name property: The name of the resource.Get the privileges property: A set of privileges contained by the Role Definition.roleName()
Get the roleName property: A user-friendly name for the Role Definition.roles()
Get the roles property: The set of roles inherited by this Role Definition.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.Get the type property: Indicates whether the Role Definition was built-in or user created.void
validate()
Validates the instance.withDatabaseName
(String databaseName) Set the databaseName property: The database name for which access is being granted for this Role Definition.withPrivileges
(List<Privilege> privileges) Set the privileges property: A set of privileges contained by the Role Definition.withRoleName
(String roleName) Set the roleName property: A user-friendly name for the Role Definition.Set the roles property: The set of roles inherited by this Role Definition.Set the type property: Indicates whether the Role Definition was built-in or user created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MongoRoleDefinitionGetResultsInner
public MongoRoleDefinitionGetResultsInner()Creates an instance of MongoRoleDefinitionGetResultsInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
type
in classArmProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classArmProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classArmProxyResource
- Returns:
- the id value.
-
roleName
Get the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.- Returns:
- the roleName value.
-
withRoleName
Set the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.- Parameters:
roleName
- the roleName value to set.- Returns:
- the MongoRoleDefinitionGetResultsInner object itself.
-
typePropertiesType
Get the type property: Indicates whether the Role Definition was built-in or user created.- Returns:
- the type value.
-
withTypePropertiesType
Set the type property: Indicates whether the Role Definition was built-in or user created.- Parameters:
type
- the type value to set.- Returns:
- the MongoRoleDefinitionGetResultsInner object itself.
-
databaseName
Get the databaseName property: The database name for which access is being granted for this Role Definition.- Returns:
- the databaseName value.
-
withDatabaseName
Set the databaseName property: The database name for which access is being granted for this Role Definition.- Parameters:
databaseName
- the databaseName value to set.- Returns:
- the MongoRoleDefinitionGetResultsInner object itself.
-
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:
- the privileges value.
-
withPrivileges
Set 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.- Parameters:
privileges
- the privileges value to set.- Returns:
- the MongoRoleDefinitionGetResultsInner object itself.
-
roles
Get the roles property: The set of roles inherited by this Role Definition.- Returns:
- the roles value.
-
withRoles
Set the roles property: The set of roles inherited by this Role Definition.- Parameters:
roles
- the roles value to set.- Returns:
- the MongoRoleDefinitionGetResultsInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classArmProxyResource
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classArmProxyResource
- Throws:
IOException
-
fromJson
public static MongoRoleDefinitionGetResultsInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MongoRoleDefinitionGetResultsInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MongoRoleDefinitionGetResultsInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the MongoRoleDefinitionGetResultsInner.
-