CosmosPermissionProperties Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosPermissionProperties
- com.
public final class CosmosPermissionProperties
The type Cosmos permission properties.
Constructor Summary
Constructor | Description |
---|---|
CosmosPermissionProperties() |
Initialize a permission object. |
Method Summary
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. |
Permission |
getPermissionMode()
Gets the permission mode. |
Container |
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. |
Partition |
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. |
Cosmos |
setContainerName(String containerName)
Sets the name of the Cosmos container as the parent resource which is associated with this permission object. |
Cosmos |
setId(String id)
Sets the name of the permission resource. |
Cosmos |
setPermissionMode(PermissionMode permissionMode)
Sets the permission mode. |
Cosmos |
setResourcePartitionKey(PartitionKey partitionKey)
Sets the resource partition key associated with this permission object. |
Cosmos |
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. |
Methods inherited from java.lang.Object
Constructor Details
CosmosPermissionProperties
public CosmosPermissionProperties()
Initialize a permission object.
Method Details
getContainerName
public String getContainerName()
Gets the name of the Cosmos container as the parent resource which is associated with this permission object.
Returns:
getETag
public String getETag()
Get the entity tag associated with the resource. This is only relevant when getting response from the server.
Returns:
getId
public String getId()
Gets the name of the resource.
Returns:
getPermissionMode
public PermissionMode getPermissionMode()
Gets the permission mode.
Returns:
getResourceKind
public ContainerChildResourceType getResourceKind()
Gets the kind of resource that has a Cosmos container as the parent resource which is associated with this permission object.
Returns:
getResourceName
public String getResourceName()
Gets the name of resource that has a Cosmos container as the parent resource which is associated with this permission object.
Returns:
getResourcePartitionKey
public PartitionKey getResourcePartitionKey()
Gets the resource partition key associated with this permission object.
Returns:
getTimestamp
public Instant getTimestamp()
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.
Returns:
getToken
public String getToken()
Gets the access token granting the defined permission.
Returns:
setContainerName
public CosmosPermissionProperties setContainerName(String containerName)
Sets the name of the Cosmos container as the parent resource which is associated with this permission object.
Parameters:
Returns:
setId
public CosmosPermissionProperties setId(String id)
Sets the name of the permission resource.
Parameters:
Returns:
setPermissionMode
public CosmosPermissionProperties setPermissionMode(PermissionMode permissionMode)
Sets the permission mode.
Parameters:
Returns:
setResourcePartitionKey
public CosmosPermissionProperties setResourcePartitionKey(PartitionKey partitionKey)
Sets the resource partition key associated with this permission object.
Parameters:
Returns:
setResourcePath
public 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.
Parameters:
Returns:
Applies to
Azure SDK for Java