Class SqlTriggerResource

    • Constructor Detail

      • SqlTriggerResource

        public SqlTriggerResource()
    • Method Detail

      • id

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

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

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

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

        public TriggerType triggerType()
        Get the triggerType property: Type of the Trigger.
        Returns:
        the triggerType value.
      • withTriggerType

        public SqlTriggerResource withTriggerType​(TriggerType triggerType)
        Set the triggerType property: Type of the Trigger.
        Parameters:
        triggerType - the triggerType value to set.
        Returns:
        the SqlTriggerResource object itself.
      • triggerOperation

        public TriggerOperation triggerOperation()
        Get the triggerOperation property: The operation the trigger is associated with.
        Returns:
        the triggerOperation value.
      • withTriggerOperation

        public SqlTriggerResource withTriggerOperation​(TriggerOperation triggerOperation)
        Set the triggerOperation property: The operation the trigger is associated with.
        Parameters:
        triggerOperation - the triggerOperation value to set.
        Returns:
        the SqlTriggerResource object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.