Package com.azure.data.cosmos
Class CosmosTriggerProperties
- java.lang.Object
-
- com.azure.data.cosmos.JsonSerializable
-
- com.azure.data.cosmos.Resource
-
- com.azure.data.cosmos.CosmosTriggerProperties
-
public class CosmosTriggerProperties extends Resource
-
-
Constructor Summary
Constructors Constructor Description CosmosTriggerProperties()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
body()
Get the body of the trigger.CosmosTriggerProperties
body(String body)
Set the body of the trigger.CosmosTriggerProperties
id(String id)
Sets the idTriggerOperation
triggerOperation()
Get the operation type of the trigger.CosmosTriggerProperties
triggerOperation(TriggerOperation triggerOperation)
Set the operation type of the trigger.TriggerType
triggerType()
Get the type of the trigger.CosmosTriggerProperties
triggerType(TriggerType triggerType)
Set the type of the resource.-
Methods inherited from class com.azure.data.cosmos.Resource
etag, id, resourceId, resourceId, selfLink, timestamp
-
Methods inherited from class com.azure.data.cosmos.JsonSerializable
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
-
-
-
-
Method Detail
-
id
public CosmosTriggerProperties id(String id)
Sets the id
-
body
public String body()
Get the body of the trigger.- Returns:
- the body of the trigger.
-
body
public CosmosTriggerProperties body(String body)
Set the body of the trigger.- Parameters:
body
- the body of the trigger.- Returns:
- the CosmosTriggerProperties.
-
triggerType
public TriggerType triggerType()
Get the type of the trigger.- Returns:
- the trigger type.
-
triggerType
public CosmosTriggerProperties triggerType(TriggerType triggerType)
Set the type of the resource.- Parameters:
triggerType
- the trigger type.- Returns:
- the CosmosTriggerProperties.
-
triggerOperation
public TriggerOperation triggerOperation()
Get the operation type of the trigger.- Returns:
- the trigger operation.
-
triggerOperation
public CosmosTriggerProperties triggerOperation(TriggerOperation triggerOperation)
Set the operation type of the trigger.- Parameters:
triggerOperation
- the trigger operation.- Returns:
- the CosmosTriggerProperties.
-
-