Permission Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. Permission
- com.
Implements
public final class Permission
implements JsonSerializable<Permission>
The set of data plane operations permitted through this Role Definition.
Constructor Summary
Constructor | Description |
---|---|
Permission() |
Creates an instance of Permission class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
dataActions()
Get the data |
static Permission |
fromJson(JsonReader jsonReader)
Reads an instance of Permission from the Json |
List<String> |
notDataActions()
Get the not |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Permission |
withDataActions(List<String> dataActions)
Set the data |
Permission |
withNotDataActions(List<String> notDataActions)
Set the not |
Methods inherited from java.lang.Object
Constructor Details
Permission
public Permission()
Creates an instance of Permission class.
Method Details
dataActions
public List
Get the dataActions property: An array of data actions that are allowed.
Returns:
fromJson
public static Permission fromJson(JsonReader jsonReader)
Reads an instance of Permission from the JsonReader.
Parameters:
Returns:
Throws:
notDataActions
public List
Get the notDataActions property: An array of data actions that are denied.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDataActions
public Permission withDataActions(List
Set the dataActions property: An array of data actions that are allowed.
Parameters:
Returns:
withNotDataActions
public Permission withNotDataActions(List
Set the notDataActions property: An array of data actions that are denied.
Parameters:
Returns:
Applies to
Azure SDK for Java