Class Privilege

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

public final class Privilege extends Object
The set of data plane operations permitted through this Role Definition.
  • Constructor Details

    • Privilege

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

    • resource

      public PrivilegeResource resource()
      Get the resource property: An Azure Cosmos DB Mongo DB Resource.
      Returns:
      the resource value.
    • withResource

      public Privilege withResource(PrivilegeResource resource)
      Set the resource property: An Azure Cosmos DB Mongo DB Resource.
      Parameters:
      resource - the resource value to set.
      Returns:
      the Privilege object itself.
    • actions

      public List<String> actions()
      Get the actions property: An array of actions that are allowed.
      Returns:
      the actions value.
    • withActions

      public Privilege withActions(List<String> actions)
      Set the actions property: An array of actions that are allowed.
      Parameters:
      actions - the actions value to set.
      Returns:
      the Privilege object itself.
    • validate

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