Package com.azure.cosmos.models
Class CosmosStoredProcedureProperties
java.lang.Object
com.azure.cosmos.models.CosmosStoredProcedureProperties
Represents a stored procedure in the Azure Cosmos DB database service.
Cosmos DB allows stored procedures to be executed in the storage tier, directly against a container. The script gets executed under ACID transactions on the primary storage partition of the specified container. For additional details, refer to documentation
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CosmosStoredProcedureProperties
Constructor.- Parameters:
id
- the id of the stored procedurebody
- the body of the stored procedure
-
-
Method Details
-
setId
Sets the id- Parameters:
id
- the name of the resource.- Returns:
- return the Cosmos stored procedure properties with id set
-
getBody
Get the body of the stored procedure.- Returns:
- the body of the stored procedure.
-
setBody
Set the body of the stored procedure.- Parameters:
body
- the body of the stored procedure.- Returns:
- return the Cosmos stored procedure properties.
-
getId
Gets the name of the resource.- Returns:
- the name of the resource.
-
getTimestamp
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.- Returns:
- the timestamp.
-
getETag
Get the entity tag associated with the resource. This is only relevant when getting response from the server.- Returns:
- the e tag.
-