Package com.azure.data.cosmos
Class CosmosPermissionProperties
- java.lang.Object
-
- com.azure.data.cosmos.JsonSerializable
-
- com.azure.data.cosmos.Resource
-
- com.azure.data.cosmos.CosmosPermissionProperties
-
public class CosmosPermissionProperties extends Resource
-
-
Constructor Summary
Constructors Constructor Description CosmosPermissionProperties()
Initialize a permission object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<CosmosPermissionProperties>
getFromV2Results(List<com.azure.data.cosmos.internal.Permission> results)
CosmosPermissionProperties
id(String id)
Sets the idPermissionMode
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.-
Methods inherited from class com.azure.data.cosmos.Resource
etag, id, resourceId, resourceId, selfLink, timestamp
-
Methods inherited from class com.azure.data.cosmos.JsonSerializable
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
-
-
-
-
Method Detail
-
getFromV2Results
public static List<CosmosPermissionProperties> getFromV2Results(List<com.azure.data.cosmos.internal.Permission> results)
-
id
public CosmosPermissionProperties id(String id)
Sets the id- Overrides:
id
in classResource
- Parameters:
id
- the name of the resource.- Returns:
- the current
CosmosPermissionProperties
object
-
resourceLink
public String resourceLink()
Gets the self-link of resource to which the permission applies.- Returns:
- the resource link.
-
resourceLink
public CosmosPermissionProperties resourceLink(String resourceLink)
Sets the self-link of resource to which the permission applies.- Parameters:
resourceLink
- the resource link.- Returns:
- the current
CosmosPermissionProperties
object
-
permissionMode
public PermissionMode permissionMode()
Gets the permission mode.- Returns:
- the permission mode.
-
permissionMode
public CosmosPermissionProperties permissionMode(PermissionMode permissionMode)
Sets the permission mode.- Parameters:
permissionMode
- the permission mode.- Returns:
- the current
CosmosPermissionProperties
object
-
resourcePartitionKey
public CosmosPermissionProperties resourcePartitionKey(PartitionKey partitionKey)
Sets the resource partition key associated with this permission object.- Parameters:
partitionKey
- the partition key.- Returns:
- the current
CosmosPermissionProperties
object
-
-