Class SqlTriggerResource
java.lang.Object
com.microsoft.azure.management.cosmosdb.SqlTriggerResource
Cosmos DB SQL trigger resource object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbody()
Get body of the Trigger.id()
Get name of the Cosmos DB SQL trigger.Get the operation the trigger is associated with.Get type of the Trigger.Set body of the Trigger.Set name of the Cosmos DB SQL trigger.withTriggerOperation
(TriggerOperation triggerOperation) Set the operation the trigger is associated with.withTriggerType
(TriggerType triggerType) Set type of the Trigger.
-
Constructor Details
-
SqlTriggerResource
public SqlTriggerResource()
-
-
Method Details
-
id
Get name of the Cosmos DB SQL trigger.- Returns:
- the id value
-
withId
Set name of the Cosmos DB SQL trigger.- Parameters:
id
- the id value to set- Returns:
- the SqlTriggerResource object itself.
-
body
Get body of the Trigger.- Returns:
- the body value
-
withBody
Set body of the Trigger.- Parameters:
body
- the body value to set- Returns:
- the SqlTriggerResource object itself.
-
triggerType
Get type of the Trigger. Possible values include: 'Pre', 'Post'.- Returns:
- the triggerType value
-
withTriggerType
Set type of the Trigger. Possible values include: 'Pre', 'Post'.- Parameters:
triggerType
- the triggerType value to set- Returns:
- the SqlTriggerResource object itself.
-
triggerOperation
Get the operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'.- Returns:
- the triggerOperation value
-
withTriggerOperation
Set the operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'.- Parameters:
triggerOperation
- the triggerOperation value to set- Returns:
- the SqlTriggerResource object itself.
-