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.data.cosmos.internal.Permission> results) |
CosmosPermissionProperties |
id(String id)
Sets the id
|
PermissionMode |
permissionMode()
Gets the permission mode.
|
CosmosPermissionProperties |
permissionMode(PermissionMode permissionMode)
Sets the permission mode.
|
String |
resourceLink()
Gets the self-link of resource to which the permission applies.
|
CosmosPermissionProperties |
resourceLink(String resourceLink)
Sets the self-link of resource to which the permission applies.
|
CosmosPermissionProperties |
resourcePartitionKey(PartitionKey partitionKey)
Sets the resource partition key associated with this permission object.
|
etag, id, resourceId, resourceId, selfLink, timestamp
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.data.cosmos.internal.Permission> results)
public CosmosPermissionProperties id(String id)
id
in class Resource
id
- the name of the resource.CosmosPermissionProperties
objectpublic String resourceLink()
public CosmosPermissionProperties resourceLink(String resourceLink)
resourceLink
- the resource link.CosmosPermissionProperties
objectpublic PermissionMode permissionMode()
public CosmosPermissionProperties permissionMode(PermissionMode permissionMode)
permissionMode
- the permission mode.CosmosPermissionProperties
objectpublic CosmosPermissionProperties resourcePartitionKey(PartitionKey partitionKey)
partitionKey
- the partition key.CosmosPermissionProperties
objectCopyright © 2019. All rights reserved.