public final class CosmosStoredProcedureRequestOptions extends Object
Constructor and Description |
---|
CosmosStoredProcedureRequestOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getIfMatchETag()
Gets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
String |
getIfNoneMatchETag()
Gets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
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.
|
boolean |
isScriptLoggingEnabled()
Gets whether Javascript stored procedure logging is enabled for the current request in the Azure Cosmos DB database
service or not.
|
CosmosStoredProcedureRequestOptions |
setIfMatchETag(String ifMatchETag)
Sets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosStoredProcedureRequestOptions |
setIfNoneMatchETag(String ifNoneMatchETag)
Sets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosStoredProcedureRequestOptions |
setPartitionKey(PartitionKey partitionKey)
Sets the partition key used to identify the current request's target partition.
|
CosmosStoredProcedureRequestOptions |
setScriptLoggingEnabled(boolean scriptLoggingEnabled)
Sets whether Javascript stored procedure logging is enabled for the current request in the Azure Cosmos DB database
service or not.
|
CosmosStoredProcedureRequestOptions |
setSessionToken(String sessionToken)
Sets the token for use with session consistency.
|
public String getIfMatchETag()
public CosmosStoredProcedureRequestOptions setIfMatchETag(String ifMatchETag)
ifMatchETag
- the ifMatchETag associated with the request.public String getIfNoneMatchETag()
public CosmosStoredProcedureRequestOptions setIfNoneMatchETag(String ifNoneMatchETag)
ifNoneMatchETag
- the ifNoneMatchETag associated with the request.public PartitionKey getPartitionKey()
public CosmosStoredProcedureRequestOptions setPartitionKey(PartitionKey partitionKey)
partitionKey
- the partition key value.public String getSessionToken()
public CosmosStoredProcedureRequestOptions setSessionToken(String sessionToken)
sessionToken
- the session token.public boolean isScriptLoggingEnabled()
public CosmosStoredProcedureRequestOptions setScriptLoggingEnabled(boolean scriptLoggingEnabled)
scriptLoggingEnabled
- true if stored procedure Javascript logging is enabledCopyright © 2021 Microsoft Corporation. All rights reserved.