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