Class Permission
java.lang.Object
com.azure.resourcemanager.cosmos.models.Permission
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Permission>
The set of data plane operations permitted through this Role Definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dataActions property: An array of data actions that are allowed.static Permission
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Permission from the JsonReader.Get the notDataActions property: An array of data actions that are denied.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDataActions
(List<String> dataActions) Set the dataActions property: An array of data actions that are allowed.withNotDataActions
(List<String> notDataActions) Set the notDataActions property: An array of data actions that are denied.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Permission
public Permission()Creates an instance of Permission class.
-
-
Method Details
-
dataActions
Get the dataActions property: An array of data actions that are allowed.- Returns:
- the dataActions value.
-
withDataActions
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
Get the notDataActions property: An array of data actions that are denied.- Returns:
- the notDataActions value.
-
withNotDataActions
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Permission>
- Throws:
IOException
-
fromJson
Reads an instance of Permission from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of Permission if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the Permission.
-