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