public final class CosmosPermissionProperties extends Object
Constructor and Description |
---|
CosmosPermissionProperties()
Initialize a permission object.
|
Modifier and Type | Method and Description |
---|---|
String |
getContainerName()
Gets the name of the Cosmos container as the parent resource which is associated with this permission object.
|
String |
getETag()
Get the entity tag associated with the resource.
|
String |
getId()
Gets the name of the resource.
|
PermissionMode |
getPermissionMode()
Gets the permission mode.
|
ContainerChildResourceType |
getResourceKind()
Gets the kind of resource that has a Cosmos container as the parent resource which is associated with this
permission object.
|
String |
getResourceName()
Gets the name of resource that has a Cosmos container as the parent resource which is associated with this
permission object.
|
PartitionKey |
getResourcePartitionKey()
Gets the resource partition key associated with this permission object.
|
Instant |
getTimestamp()
Get the last modified timestamp associated with the resource.
|
String |
getToken()
Gets the access token granting the defined permission.
|
CosmosPermissionProperties |
setContainerName(String containerName)
Sets the name of the Cosmos container as the parent resource which is associated with this permission object.
|
CosmosPermissionProperties |
setId(String id)
Sets the name of the permission resource.
|
CosmosPermissionProperties |
setPermissionMode(PermissionMode permissionMode)
Sets the permission mode.
|
CosmosPermissionProperties |
setResourcePartitionKey(PartitionKey partitionKey)
Sets the resource partition key associated with this permission object.
|
CosmosPermissionProperties |
setResourcePath(ContainerChildResourceType resourceKind,
String resourceName)
Sets the resource path represented by the name and kind of a resource that has a Cosmos container as the parent
resource which is associated with this permission object.
|
public CosmosPermissionProperties()
public CosmosPermissionProperties setId(String id)
id
- the name of the resource.CosmosPermissionProperties
objectpublic CosmosPermissionProperties setContainerName(String containerName)
containerName
- the name of the Cosmos container representing the parent resource.CosmosPermissionProperties
object.public String getContainerName()
public ContainerChildResourceType getResourceKind()
public String getResourceName()
public CosmosPermissionProperties setResourcePath(ContainerChildResourceType resourceKind, String resourceName)
resourceKind
- the kind of resource that has a Cosmos container as parent resource.resourceName
- the name of resource that has a Cosmos container as the parent resource.CosmosPermissionProperties
object.public PermissionMode getPermissionMode()
public CosmosPermissionProperties setPermissionMode(PermissionMode permissionMode)
permissionMode
- the permission mode.CosmosPermissionProperties
objectpublic PartitionKey getResourcePartitionKey()
public CosmosPermissionProperties setResourcePartitionKey(PartitionKey partitionKey)
partitionKey
- the partition key.CosmosPermissionProperties
object.public String getId()
public Instant getTimestamp()
public String getETag()
public String getToken()
Copyright © 2021 Microsoft Corporation. All rights reserved.