public class CosmosStoredProcedureRequestOptions extends CosmosRequestOptions
requestOptions| Constructor and Description |
|---|
CosmosStoredProcedureRequestOptions() |
| Modifier and Type | Method and Description |
|---|---|
ConsistencyLevel |
getConsistencyLevel()
Gets the consistency level required for the request.
|
PartitionKey |
getPartitionKey()
Gets the partition key used to identify the current request's target partition.
|
String |
getSessionToken()
Gets the token for use with session consistency.
|
void |
setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
void |
setPartitionKey(PartitionKey partitionKey)
Sets the partition key used to identify the current request's target partition.
|
void |
setSessionToken(String sessionToken)
Sets the token for use with session consistency.
|
protected RequestOptions |
toRequestOptions() |
getAccessCondition, setAccessConditionpublic ConsistencyLevel getConsistencyLevel()
public void setConsistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel - the consistency level.public PartitionKey getPartitionKey()
public void setPartitionKey(PartitionKey partitionKey)
partitionKey - the partition key value.public String getSessionToken()
public void setSessionToken(String sessionToken)
sessionToken - the session token.protected RequestOptions toRequestOptions()
toRequestOptions in class CosmosRequestOptionsCopyright © 2019. All rights reserved.