public final class Permission extends Resource
Constructor and Description |
---|
Permission()
Initialize a permission object.
|
Permission(String jsonString)
Initialize a permission object from json string.
|
Modifier and Type | Method and Description |
---|---|
PermissionMode |
getPermissionMode()
Gets the permission mode.
|
String |
getResourceLink()
Gets the self-link of resource to which the permission applies.
|
PartitionKey |
getResourcePartitionKey()
Gets the resource partition key associated with this permission object.
|
String |
getToken()
Gets the access token granting the defined permission.
|
Permission |
setId(String id)
Sets the id
|
void |
setPermissionMode(PermissionMode permissionMode)
Sets the permission mode.
|
void |
setResourceLink(String resourceLink)
Sets the self-link of resource to which the permission applies.
|
void |
setResourcePartitionKey(PartitionKey partitionkey)
Sets the resource partition key associated with this permission object.
|
getETag, getId, getResourceId, getSelfLink, getTimestamp
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getPropertyBag, getString, has, populatePropertyBag, remove, serializeJsonToByteBuffer, set, toJson, toJson, toObject, toString
public Permission()
public Permission(String jsonString)
jsonString
- the json string that represents the permission.public Permission setId(String id)
public String getResourceLink()
public void setResourceLink(String resourceLink)
resourceLink
- the resource link.public PermissionMode getPermissionMode()
public void setPermissionMode(PermissionMode permissionMode)
permissionMode
- the permission mode.public String getToken()
public PartitionKey getResourcePartitionKey()
public void setResourcePartitionKey(PartitionKey partitionkey)
partitionkey
- the partition key.Copyright © 2020 Microsoft Corporation. All rights reserved.