Class SqlTriggerResource

java.lang.Object
com.microsoft.azure.management.cosmosdb.SqlTriggerResource

public class SqlTriggerResource extends Object
Cosmos DB SQL trigger resource object.
  • Constructor Details

    • SqlTriggerResource

      public SqlTriggerResource()
  • Method Details

    • id

      public String id()
      Get name of the Cosmos DB SQL trigger.
      Returns:
      the id value
    • withId

      public SqlTriggerResource withId(String id)
      Set name of the Cosmos DB SQL trigger.
      Parameters:
      id - the id value to set
      Returns:
      the SqlTriggerResource object itself.
    • body

      public String body()
      Get body of the Trigger.
      Returns:
      the body value
    • withBody

      public SqlTriggerResource withBody(String body)
      Set body of the Trigger.
      Parameters:
      body - the body value to set
      Returns:
      the SqlTriggerResource object itself.
    • triggerType

      public TriggerType triggerType()
      Get type of the Trigger. Possible values include: 'Pre', 'Post'.
      Returns:
      the triggerType value
    • withTriggerType

      public SqlTriggerResource withTriggerType(TriggerType triggerType)
      Set type of the Trigger. Possible values include: 'Pre', 'Post'.
      Parameters:
      triggerType - the triggerType value to set
      Returns:
      the SqlTriggerResource object itself.
    • triggerOperation

      public TriggerOperation triggerOperation()
      Get the operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'.
      Returns:
      the triggerOperation value
    • withTriggerOperation

      public SqlTriggerResource withTriggerOperation(TriggerOperation triggerOperation)
      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.