### YamlMime:JavaType uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource" name: "PrivilegeResource" nameWithType: "PrivilegeResource" summary: "An Azure Cosmos DB Mongo DB Resource." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **PrivilegeResource**
implements <>" constructors: - uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.PrivilegeResource()" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.PrivilegeResource()" name: "PrivilegeResource()" nameWithType: "PrivilegeResource.PrivilegeResource()" summary: "Creates an instance of PrivilegeResource class." syntax: "public PrivilegeResource()" desc: "Creates an instance of PrivilegeResource class." methods: - uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.collection()" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.collection()" name: "collection()" nameWithType: "PrivilegeResource.collection()" summary: "Get the collection property: The collection name the role is applied." syntax: "public String collection()" desc: "Get the collection property: The collection name the role is applied." returns: description: "the collection value." type: "String" - uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.db()" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.db()" name: "db()" nameWithType: "PrivilegeResource.db()" summary: "Get the db property: The database name the role is applied." syntax: "public String db()" desc: "Get the db property: The database name the role is applied." returns: description: "the db value." type: "String" - uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.fromJson(com.azure.json.JsonReader)" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.fromJson(JsonReader jsonReader)" name: "fromJson(JsonReader jsonReader)" nameWithType: "PrivilegeResource.fromJson(JsonReader jsonReader)" summary: "Reads an instance of PrivilegeResource from the JsonReader." modifiers: - "static" parameters: - description: "The JsonReader being read." name: "jsonReader" type: "" syntax: "public static PrivilegeResource fromJson(JsonReader jsonReader)" exceptions: - description: "If an error occurs while reading the PrivilegeResource." type: "IOException" desc: "Reads an instance of PrivilegeResource from the JsonReader." returns: description: "An instance of PrivilegeResource if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null." type: "" - uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.toJson(com.azure.json.JsonWriter)" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.toJson(JsonWriter jsonWriter)" name: "toJson(JsonWriter jsonWriter)" nameWithType: "PrivilegeResource.toJson(JsonWriter jsonWriter)" parameters: - name: "jsonWriter" type: "" syntax: "public JsonWriter toJson(JsonWriter jsonWriter)" exceptions: - type: "IOException" returns: type: "" - uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.validate()" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.validate()" name: "validate()" nameWithType: "PrivilegeResource.validate()" summary: "Validates the instance." syntax: "public void validate()" desc: "Validates the instance." - uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.withCollection(java.lang.String)" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.withCollection(String collection)" name: "withCollection(String collection)" nameWithType: "PrivilegeResource.withCollection(String collection)" summary: "Set the collection property: The collection name the role is applied." parameters: - description: "the collection value to set." name: "collection" type: "String" syntax: "public PrivilegeResource withCollection(String collection)" desc: "Set the collection property: The collection name the role is applied." returns: description: "the PrivilegeResource object itself." type: "" - uid: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.withDb(java.lang.String)" fullName: "com.azure.resourcemanager.cosmos.models.PrivilegeResource.withDb(String db)" name: "withDb(String db)" nameWithType: "PrivilegeResource.withDb(String db)" summary: "Set the db property: The database name the role is applied." parameters: - description: "the db value to set." name: "db" type: "String" syntax: "public PrivilegeResource withDb(String db)" desc: "Set the db property: The database name the role is applied." returns: description: "the PrivilegeResource object itself." type: "" type: "class" desc: "An Azure Cosmos DB Mongo DB Resource." implements: - "<>" metadata: {} package: "com.azure.resourcemanager.cosmos.models" artifact: com.azure.resourcemanager:azure-resourcemanager-cosmos:2.44.1