Package com.azure.cosmos.models
Class CosmosTriggerProperties
- java.lang.Object
-
- com.azure.cosmos.models.CosmosTriggerProperties
-
public final class CosmosTriggerProperties extends Object
The type Cosmos trigger properties.
-
-
Constructor Summary
Constructors Constructor Description CosmosTriggerProperties(String id, String body)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBody()
Get the body of the trigger.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.TriggerOperation
getTriggerOperation()
Get the operation type of the trigger.TriggerType
getTriggerType()
Get the type of the trigger.CosmosTriggerProperties
setBody(String body)
Set the body of the trigger.CosmosTriggerProperties
setId(String id)
Sets the idCosmosTriggerProperties
setTriggerOperation(TriggerOperation triggerOperation)
Set the operation type of the trigger.CosmosTriggerProperties
setTriggerType(TriggerType triggerType)
Set the type of the resource.
-
-
-
Method Detail
-
setId
public CosmosTriggerProperties setId(String id)
Sets the id- Parameters:
id
- the name of the resource.- Returns:
- the current cosmos trigger properties instance
-
getBody
public String getBody()
Get the body of the trigger.- Returns:
- the body of the trigger.
-
setBody
public CosmosTriggerProperties setBody(String body)
Set the body of the trigger.- Parameters:
body
- the body of the trigger.- Returns:
- the CosmosTriggerProperties.
-
getTriggerType
public TriggerType getTriggerType()
Get the type of the trigger.- Returns:
- the trigger type.
-
setTriggerType
public CosmosTriggerProperties setTriggerType(TriggerType triggerType)
Set the type of the resource.- Parameters:
triggerType
- the trigger type.- Returns:
- the CosmosTriggerProperties.
-
getTriggerOperation
public TriggerOperation getTriggerOperation()
Get the operation type of the trigger.- Returns:
- the trigger operation.
-
setTriggerOperation
public CosmosTriggerProperties setTriggerOperation(TriggerOperation triggerOperation)
Set the operation type of the trigger.- Parameters:
triggerOperation
- the trigger operation.- Returns:
- the CosmosTriggerProperties.
-
getId
public String getId()
Gets the name of the resource.- Returns:
- the name of the resource.
-
getTimestamp
public Instant getTimestamp()
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.- Returns:
- the timestamp.
-
getETag
public String getETag()
Get the entity tag associated with the resource. This is only relevant when getting response from the server.- Returns:
- the e tag.
-
-