public class CosmosPermissionProperties extends Resource
Constructor and Description |
---|
CosmosPermissionProperties()
Initialize a permission object.
|
Modifier and Type | Method and Description |
---|---|
static List<CosmosPermissionProperties> |
getFromV2Results(List<com.azure.cosmos.implementation.Permission> results) |
PermissionMode |
getPermissionMode()
Gets the permission mode.
|
String |
getResourceLink()
Gets the self-link of resource to which the permission applies.
|
CosmosPermissionProperties |
setId(String id)
Sets the id
|
CosmosPermissionProperties |
setPermissionMode(PermissionMode permissionMode)
Sets the permission mode.
|
CosmosPermissionProperties |
setResourceLink(String resourceLink)
Sets the self-link of resource to which the permission applies.
|
CosmosPermissionProperties |
setResourcePartitionKey(PartitionKey partitionKey)
Sets the resource partition key associated with this permission object.
|
getETag, getId, getResourceId, getSelfLink, getTimestamp, setResourceId
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
public CosmosPermissionProperties()
public static List<CosmosPermissionProperties> getFromV2Results(List<com.azure.cosmos.implementation.Permission> results)
public CosmosPermissionProperties setId(String id)
setId
in class Resource
id
- the name of the resource.CosmosPermissionProperties
objectpublic String getResourceLink()
public CosmosPermissionProperties setResourceLink(String resourceLink)
resourceLink
- the resource link.CosmosPermissionProperties
objectpublic PermissionMode getPermissionMode()
public CosmosPermissionProperties setPermissionMode(PermissionMode permissionMode)
permissionMode
- the permission mode.CosmosPermissionProperties
objectpublic CosmosPermissionProperties setResourcePartitionKey(PartitionKey partitionKey)
partitionKey
- the partition key.CosmosPermissionProperties
objectCopyright © 2020 Microsoft Corporation. All rights reserved.