Package com.azure.cosmos.models
Class CosmosStoredProcedureProperties
- java.lang.Object
-
- com.azure.cosmos.models.CosmosStoredProcedureProperties
-
public final class CosmosStoredProcedureProperties extends Object
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
Constructors Constructor Description CosmosStoredProcedureProperties(String id, String body)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBody()
Get the body of the stored procedure.String
getETag()
Get the entity tag associated with the resource.String
getId()
Gets the name of the resource.Instant
getTimestamp()
Get the last modified timestamp associated with the resource.CosmosStoredProcedureProperties
setBody(String body)
Set the body of the stored procedure.CosmosStoredProcedureProperties
setId(String id)
Sets the id
-
-
-
Method Detail
-
setId
public CosmosStoredProcedureProperties setId(String id)
Sets the id- Parameters:
id
- the name of the resource.- Returns:
- return the Cosmos stored procedure properties with id set
-
getBody
public String getBody()
Get the body of the stored procedure.- Returns:
- the body of the stored procedure.
-
setBody
public CosmosStoredProcedureProperties setBody(String body)
Set the body of the stored procedure.- Parameters:
body
- the body of the stored procedure.- Returns:
- return the Cosmos stored procedure properties.
-
getId
public String getId()
Gets the name of the resource.- Returns:
- the name of the resource.
-
getTimestamp
public Instant getTimestamp()
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.- Returns:
- the timestamp.
-
getETag
public String getETag()
Get the entity tag associated with the resource. This is only relevant when getting response from the server.- Returns:
- the e tag.
-
-