public class CosmosStoredProcedureRequestOptions extends Object
Constructor and Description |
---|
CosmosStoredProcedureRequestOptions() |
Modifier and Type | Method and Description |
---|---|
AccessCondition |
accessCondition()
Gets the conditions associated with the request.
|
CosmosStoredProcedureRequestOptions |
accessCondition(AccessCondition accessCondition)
Sets the conditions associated with the request.
|
ConsistencyLevel |
consistencyLevel()
Gets the consistency level required for the request.
|
CosmosStoredProcedureRequestOptions |
consistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
PartitionKey |
partitionKey()
Gets the partition key used to identify the current request's target partition.
|
CosmosStoredProcedureRequestOptions |
partitionKey(PartitionKey partitionKey)
Sets the partition key used to identify the current request's target partition.
|
String |
sessionToken()
Gets the token for use with session consistency.
|
CosmosStoredProcedureRequestOptions |
sessionToken(String sessionToken)
Sets the token for use with session consistency.
|
public AccessCondition accessCondition()
public CosmosStoredProcedureRequestOptions accessCondition(AccessCondition accessCondition)
accessCondition
- the access condition.public ConsistencyLevel consistencyLevel()
public CosmosStoredProcedureRequestOptions consistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel
- the consistency level.public PartitionKey partitionKey()
public CosmosStoredProcedureRequestOptions partitionKey(PartitionKey partitionKey)
partitionKey
- the partition key value.public String sessionToken()
public CosmosStoredProcedureRequestOptions sessionToken(String sessionToken)
sessionToken
- the session token.Copyright © 2019. All rights reserved.