public final class CosmosStoredProcedureProperties extends Object
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 and Description |
---|
CosmosStoredProcedureProperties(String id,
String body)
Constructor.
|
Modifier and Type | Method and 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
|
public CosmosStoredProcedureProperties setId(String id)
id
- the name of the resource.public String getBody()
public CosmosStoredProcedureProperties setBody(String body)
body
- the body of the stored procedure.public String getId()
public Instant getTimestamp()
public String getETag()
Copyright © 2021 Microsoft Corporation. All rights reserved.