Package com.azure.cosmos.models
Class CosmosTriggerProperties
java.lang.Object
com.azure.cosmos.models.CosmosTriggerProperties
The type Cosmos trigger properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Get the body of the trigger.getETag()
Get the entity tag associated with the resource.getId()
Gets the name of the resource.Get the last modified timestamp associated with the resource.Get the operation type of the trigger.Get the type of the trigger.Set the body of the trigger.Sets the idsetTriggerOperation
(TriggerOperation triggerOperation) Set the operation type of the trigger.setTriggerType
(TriggerType triggerType) Set the type of the resource.
-
Constructor Details
-
CosmosTriggerProperties
Constructor.- Parameters:
id
- the id of the Cosmos trigger.body
- the body of the Cosmos trigger.
-
-
Method Details
-
setId
Sets the id- Parameters:
id
- the name of the resource.- Returns:
- the current cosmos trigger properties instance
-
getBody
Get the body of the trigger.- Returns:
- the body of the trigger.
-
setBody
Set the body of the trigger.- Parameters:
body
- the body of the trigger.- Returns:
- the CosmosTriggerProperties.
-
getTriggerType
Get the type of the trigger.- Returns:
- the trigger type.
-
setTriggerType
Set the type of the resource.- Parameters:
triggerType
- the trigger type.- Returns:
- the CosmosTriggerProperties.
-
getTriggerOperation
Get the operation type of the trigger.- Returns:
- the trigger operation.
-
setTriggerOperation
Set the operation type of the trigger.- Parameters:
triggerOperation
- the trigger operation.- Returns:
- the CosmosTriggerProperties.
-
getId
Gets the name of the resource.- Returns:
- the name of the resource.
-
getTimestamp
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.- Returns:
- the timestamp.
-
getETag
Get the entity tag associated with the resource. This is only relevant when getting response from the server.- Returns:
- the e tag.
-