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

public final class Role extends Object
The set of roles permitted through this Role Definition.
  • Constructor Details

    • Role

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

    • db

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

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

      public String role()
      Get the role property: The role name.
      Returns:
      the role value.
    • withRole

      public Role withRole(String role)
      Set the role property: The role name.
      Parameters:
      role - the role value to set.
      Returns:
      the Role object itself.
    • validate

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