Class AutomationRuleTriggerData

java.lang.Object
com.datadog.api.client.v2.model.AutomationRuleTriggerData

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AutomationRuleTriggerData extends Object
Additional configuration for the trigger, dependent on the trigger type. For STATUS_TRANSITIONED triggers, specify from_status_name and to_status_name. For ATTRIBUTE_VALUE_CHANGED triggers, specify field and change_type.
  • Field Details

  • Constructor Details

    • AutomationRuleTriggerData

      public AutomationRuleTriggerData()
  • Method Details

    • approvalType

      public AutomationRuleTriggerData approvalType(String approvalType)
    • getApprovalType

      @Nullable public String getApprovalType()
      The approval outcome to match. Used with CASE_REVIEW_APPROVED triggers.
      Returns:
      approvalType
    • setApprovalType

      public void setApprovalType(String approvalType)
    • changeType

      public AutomationRuleTriggerData changeType(String changeType)
    • getChangeType

      @Nullable public String getChangeType()
      The kind of attribute change to match. Allowed values: VALUE_ADDED, VALUE_DELETED, ANY_CHANGES. Used with ATTRIBUTE_VALUE_CHANGED triggers.
      Returns:
      changeType
    • setChangeType

      public void setChangeType(String changeType)
    • field

      public AutomationRuleTriggerData field(String field)
    • getField

      @Nullable public String getField()
      The case attribute field name to monitor for changes. Used with ATTRIBUTE_VALUE_CHANGED triggers.
      Returns:
      field
    • setField

      public void setField(String field)
    • fromStatusName

      public AutomationRuleTriggerData fromStatusName(String fromStatusName)
    • getFromStatusName

      @Nullable public String getFromStatusName()
      The originating status name. Used with STATUS_TRANSITIONED triggers to match transitions from this status.
      Returns:
      fromStatusName
    • setFromStatusName

      public void setFromStatusName(String fromStatusName)
    • toStatusName

      public AutomationRuleTriggerData toStatusName(String toStatusName)
    • getToStatusName

      @Nullable public String getToStatusName()
      The destination status name. Used with STATUS_TRANSITIONED triggers to match transitions to this status.
      Returns:
      toStatusName
    • setToStatusName

      public void setToStatusName(String toStatusName)
    • putAdditionalProperty

      public AutomationRuleTriggerData putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      AutomationRuleTriggerData
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this AutomationRuleTriggerData object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object