Permission Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.Permission

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 dataActions property: An array of data actions that are allowed.

static Permission fromJson(JsonReader jsonReader)

Reads an instance of Permission from the JsonReader.

List<String> notDataActions()

Get the notDataActions property: An array of data actions that are denied.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Permission withDataActions(List<String> dataActions)

Set the dataActions property: An array of data actions that are allowed.

Permission withNotDataActions(List<String> notDataActions)

Set the notDataActions property: An array of data actions that are denied.

Methods inherited from java.lang.Object

Constructor Details

Permission

public Permission()

Creates an instance of Permission class.

Method Details

dataActions

public List dataActions()

Get the dataActions property: An array of data actions that are allowed.

Returns:

the dataActions value.

fromJson

public static Permission fromJson(JsonReader jsonReader)

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.

notDataActions

public List notDataActions()

Get the notDataActions property: An array of data actions that are denied.

Returns:

the notDataActions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataActions

public Permission withDataActions(List 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.

withNotDataActions

public Permission withNotDataActions(List 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.

Applies to