Class CosmosTriggerProperties


  • public final class CosmosTriggerProperties
    extends Object
    The type Cosmos trigger properties.
    • Constructor Detail

      • CosmosTriggerProperties

        public CosmosTriggerProperties​(String id,
                                       String body)
        Constructor.
        Parameters:
        id - the id of the Cosmos trigger.
        body - the body of the Cosmos trigger.
    • 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.