Class PrivilegeResource

java.lang.Object
com.azure.resourcemanager.cosmos.models.PrivilegeResource

public final class PrivilegeResource extends Object
An Azure Cosmos DB Mongo DB Resource.
  • Constructor Details

    • PrivilegeResource

      public PrivilegeResource()
      Creates an instance of PrivilegeResource class.
  • Method Details

    • db

      public String db()
      Get the db property: The database name the role is applied.
      Returns:
      the db value.
    • withDb

      public PrivilegeResource withDb(String db)
      Set the db property: The database name the role is applied.
      Parameters:
      db - the db value to set.
      Returns:
      the PrivilegeResource object itself.
    • collection

      public String collection()
      Get the collection property: The collection name the role is applied.
      Returns:
      the collection value.
    • withCollection

      public PrivilegeResource withCollection(String collection)
      Set the collection property: The collection name the role is applied.
      Parameters:
      collection - the collection value to set.
      Returns:
      the PrivilegeResource object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.