### YamlMime:JavaType
uid: "com.microsoft.azure.documentdb.Trigger"
fullName: "com.microsoft.azure.documentdb.Trigger"
name: "Trigger"
nameWithType: "Trigger"
summary: "Represents a trigger in the Azure Cosmos DB database service."
inheritances:
- ""
- ""
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- "getCollection(java.lang.String,java.lang.Class)?alt=com.microsoft.azure.documentdb.JsonSerializable.getCollection&text=getCollection\" data-throw-if-not-resolved=\"False\" />"
- "getObject(java.lang.String,java.lang.Class)?alt=com.microsoft.azure.documentdb.JsonSerializable.getObject&text=getObject\" data-throw-if-not-resolved=\"False\" />"
- "set(java.lang.String,T)?alt=com.microsoft.azure.documentdb.JsonSerializable.set&text=set\" data-throw-if-not-resolved=\"False\" />"
- "toObject(java.lang.Class)?alt=com.microsoft.azure.documentdb.JsonSerializable.toObject&text=toObject\" data-throw-if-not-resolved=\"False\" />"
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ")?alt=com.microsoft.azure.documentdb.JsonSerializable.getObjectByPath&text=getObjectByPath\" data-throw-if-not-resolved=\"False\" />"
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
syntax: "public class **Trigger** extends "
constructors:
- uid: "com.microsoft.azure.documentdb.Trigger.Trigger()"
fullName: "com.microsoft.azure.documentdb.Trigger.Trigger()"
name: "Trigger()"
nameWithType: "Trigger.Trigger()"
summary: "Constructor."
syntax: "public Trigger()"
desc: "Constructor."
- uid: "com.microsoft.azure.documentdb.Trigger.Trigger(java.lang.String)"
fullName: "com.microsoft.azure.documentdb.Trigger.Trigger(String jsonString)"
name: "Trigger(String jsonString)"
nameWithType: "Trigger.Trigger(String jsonString)"
summary: "Constructor."
parameters:
- description: "the json string that represents the trigger."
name: "jsonString"
type: ""
syntax: "public Trigger(String jsonString)"
desc: "Constructor."
- uid: "com.microsoft.azure.documentdb.Trigger.Trigger(org.json.JSONObject)"
fullName: "com.microsoft.azure.documentdb.Trigger.Trigger(JSONObject jsonObject)"
name: "Trigger(JSONObject jsonObject)"
nameWithType: "Trigger.Trigger(JSONObject jsonObject)"
summary: "Constructor."
parameters:
- description: "the json object that represents the trigger."
name: "jsonObject"
type: ""
syntax: "public Trigger(JSONObject jsonObject)"
desc: "Constructor."
methods:
- uid: "com.microsoft.azure.documentdb.Trigger.getBody()"
fullName: "com.microsoft.azure.documentdb.Trigger.getBody()"
name: "getBody()"
nameWithType: "Trigger.getBody()"
summary: "Get the body of the trigger."
syntax: "public String getBody()"
desc: "Get the body of the trigger."
returns:
description: "the body of the trigger."
type: ""
- uid: "com.microsoft.azure.documentdb.Trigger.getTriggerOperation()"
fullName: "com.microsoft.azure.documentdb.Trigger.getTriggerOperation()"
name: "getTriggerOperation()"
nameWithType: "Trigger.getTriggerOperation()"
summary: "Get the operation type of the trigger."
syntax: "public TriggerOperation getTriggerOperation()"
desc: "Get the operation type of the trigger."
returns:
description: "the trigger operation."
type: ""
- uid: "com.microsoft.azure.documentdb.Trigger.getTriggerType()"
fullName: "com.microsoft.azure.documentdb.Trigger.getTriggerType()"
name: "getTriggerType()"
nameWithType: "Trigger.getTriggerType()"
summary: "Get the type of the trigger."
syntax: "public TriggerType getTriggerType()"
desc: "Get the type of the trigger."
returns:
description: "the trigger type."
type: ""
- uid: "com.microsoft.azure.documentdb.Trigger.setBody(java.lang.String)"
fullName: "com.microsoft.azure.documentdb.Trigger.setBody(String body)"
name: "setBody(String body)"
nameWithType: "Trigger.setBody(String body)"
summary: "Set the body of the trigger."
parameters:
- description: "the body of the trigger."
name: "body"
type: ""
syntax: "public void setBody(String body)"
desc: "Set the body of the trigger."
- uid: "com.microsoft.azure.documentdb.Trigger.setTriggerOperation(com.microsoft.azure.documentdb.TriggerOperation)"
fullName: "com.microsoft.azure.documentdb.Trigger.setTriggerOperation(TriggerOperation triggerOperation)"
name: "setTriggerOperation(TriggerOperation triggerOperation)"
nameWithType: "Trigger.setTriggerOperation(TriggerOperation triggerOperation)"
summary: "Set the operation type of the trigger."
parameters:
- description: "the trigger operation."
name: "triggerOperation"
type: ""
syntax: "public void setTriggerOperation(TriggerOperation triggerOperation)"
desc: "Set the operation type of the trigger."
- uid: "com.microsoft.azure.documentdb.Trigger.setTriggerType(com.microsoft.azure.documentdb.TriggerType)"
fullName: "com.microsoft.azure.documentdb.Trigger.setTriggerType(TriggerType triggerType)"
name: "setTriggerType(TriggerType triggerType)"
nameWithType: "Trigger.setTriggerType(TriggerType triggerType)"
summary: "Set the type of the resource."
parameters:
- description: "the trigger type."
name: "triggerType"
type: ""
syntax: "public void setTriggerType(TriggerType triggerType)"
desc: "Set the type of the resource."
type: "class"
desc: "Represents a trigger in the Azure Cosmos DB database service.\n\nAzure 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."
metadata: {}
package: "com.microsoft.azure.documentdb"
artifact: com.microsoft.azure:azure-documentdb:2.4.7