Class AutomationRuleAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AutomationRuleAttributes extends Object
Core attributes of an automation rule, including its name, trigger condition, action to execute, and current state.
  • Field Details

  • Constructor Details

  • Method Details

    • action

    • getAction

      public AutomationRuleAction getAction()
      Defines what happens when the rule triggers. Combines an action type with action-specific configuration data.
      Returns:
      action
    • setAction

      public void setAction(AutomationRuleAction action)
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      Timestamp when the automation rule was created.
      Returns:
      createdAt
    • getModifiedAt

      @Nullable public OffsetDateTime getModifiedAt()
      Timestamp when the automation rule was last modified.
      Returns:
      modifiedAt
    • name

      public AutomationRuleAttributes name(String name)
    • getName

      public String getName()
      A human-readable name for the automation rule, used to identify the rule in the UI and API responses.
      Returns:
      name
    • setName

      public void setName(String name)
    • state

    • getState

      public CaseAutomationRuleState getState()
      Whether the automation rule is active. Enabled rules trigger on matching case events; disabled rules are inactive but preserve their configuration.
      Returns:
      state
    • setState

      public void setState(CaseAutomationRuleState state)
    • trigger

    • getTrigger

      public AutomationRuleTrigger getTrigger()
      Defines when the rule activates. Combines a trigger type (the case event to listen for) with optional trigger data (conditions that narrow when the trigger fires).
      Returns:
      trigger
    • setTrigger

      public void setTrigger(AutomationRuleTrigger trigger)
    • putAdditionalProperty

      public AutomationRuleAttributes 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:
      AutomationRuleAttributes
    • 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 AutomationRuleAttributes 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