Class Permission
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.Permission
-
public final class Permission extends Object
The set of data plane operations permitted through this Role Definition.
-
-
Constructor Summary
Constructors Constructor Description Permission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>dataActions()Get the dataActions property: An array of data actions that are allowed.List<String>notDataActions()Get the notDataActions property: An array of data actions that are denied.voidvalidate()Validates the instance.PermissionwithDataActions(List<String> dataActions)Set the dataActions property: An array of data actions that are allowed.PermissionwithNotDataActions(List<String> notDataActions)Set the notDataActions property: An array of data actions that are denied.
-
-
-
Method Detail
-
dataActions
public List<String> dataActions()
Get the dataActions property: An array of data actions that are allowed.- Returns:
- the dataActions value.
-
withDataActions
public Permission withDataActions(List<String> dataActions)
Set the dataActions property: An array of data actions that are allowed.- Parameters:
dataActions- the dataActions value to set.- Returns:
- the Permission object itself.
-
notDataActions
public List<String> notDataActions()
Get the notDataActions property: An array of data actions that are denied.- Returns:
- the notDataActions value.
-
withNotDataActions
public Permission withNotDataActions(List<String> notDataActions)
Set the notDataActions property: An array of data actions that are denied.- Parameters:
notDataActions- the notDataActions value to set.- Returns:
- the Permission object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-