PrivilegeResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. PrivilegeResource
- com.
Implements
public final class PrivilegeResource
implements JsonSerializable<PrivilegeResource>
An Azure Cosmos DB Mongo DB Resource.
Constructor Summary
Constructor | Description |
---|---|
PrivilegeResource() |
Creates an instance of Privilege |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
collection()
Get the collection property: The collection name the role is applied. |
String |
db()
Get the db property: The database name the role is applied. |
static
Privilege |
fromJson(JsonReader jsonReader)
Reads an instance of Privilege |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Privilege |
withCollection(String collection)
Set the collection property: The collection name the role is applied. |
Privilege |
withDb(String db)
Set the db property: The database name the role is applied. |
Methods inherited from java.lang.Object
Constructor Details
PrivilegeResource
public PrivilegeResource()
Creates an instance of PrivilegeResource class.
Method Details
collection
public String collection()
Get the collection property: The collection name the role is applied.
Returns:
db
public String db()
Get the db property: The database name the role is applied.
Returns:
fromJson
public static PrivilegeResource fromJson(JsonReader jsonReader)
Reads an instance of PrivilegeResource from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withCollection
public PrivilegeResource withCollection(String collection)
Set the collection property: The collection name the role is applied.
Parameters:
Returns:
withDb
public PrivilegeResource withDb(String db)
Set the db property: The database name the role is applied.
Parameters:
Returns:
Applies to
Azure SDK for Java