Trigger 类

定义

Represents a trigger in the Azure Cosmos DB database service.

Azure Cosmos DB supports pre and post triggers defined in JavaScript to be executed on creates, updates and deletes. For additional details, refer to the server-side JavaScript API documentation.

public class Trigger extends Resource
继承
java.lang.Object
Serializable
Trigger

继承成员

构造函数

Trigger()

Constructor.

Trigger(JSONObject jsonObject)

Constructor.

Trigger(String jsonString)

Constructor.

方法

getBody()

Get the body of the trigger.

getTriggerOperation()

Get the operation type of the trigger.

getTriggerType()

Get the type of the trigger.

setBody(String body)

Set the body of the trigger.

setTriggerOperation(TriggerOperation triggerOperation)

Set the operation type of the trigger.

setTriggerType(TriggerType triggerType)

Set the type of the resource.

适用于