Class TeamRoutingRulesRequestRule

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TeamRoutingRulesRequestRule extends Object
Defines an individual routing rule item that contains the rule data for the request.
  • Field Details

  • Constructor Details

    • TeamRoutingRulesRequestRule

      public TeamRoutingRulesRequestRule()
  • Method Details

    • actions

    • addActionsItem

      public TeamRoutingRulesRequestRule addActionsItem(RoutingRuleAction actionsItem)
    • getActions

      @Nullable public List<RoutingRuleAction> getActions()
      Specifies the list of actions to perform when the routing rule is matched.
      Returns:
      actions
    • setActions

      public void setActions(List<RoutingRuleAction> actions)
    • id

    • getId

      @Nullable public String getId()
      Specifies the unique identifier of an existing routing rule to update. If omitted, a new routing rule is created.
      Returns:
      id
    • setId

      public void setId(String id)
    • policyId

      public TeamRoutingRulesRequestRule policyId(String policyId)
    • getPolicyId

      @Nullable public String getPolicyId()
      Identifies the policy to be applied when this routing rule matches.
      Returns:
      policyId
    • setPolicyId

      public void setPolicyId(String policyId)
    • query

      public TeamRoutingRulesRequestRule query(String query)
    • getQuery

      @Nullable public String getQuery()
      Defines the query or condition that triggers this routing rule.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • timeRestriction

      public TeamRoutingRulesRequestRule timeRestriction(TimeRestrictions timeRestriction)
    • getTimeRestriction

      @Nullable public TimeRestrictions getTimeRestriction()
      Time restrictions during which the routing rule is active. Outside of these hours, the rule does not match and routing continues to subsequent rules. This is mutually exclusive with the action-level support_hours field.
      Returns:
      timeRestriction
    • setTimeRestriction

      public void setTimeRestriction(TimeRestrictions timeRestriction)
    • urgency

      public TeamRoutingRulesRequestRule urgency(Urgency urgency)
    • getUrgency

      @Nullable public Urgency getUrgency()
      Specifies the level of urgency for a routing rule (low, high, or dynamic).
      Returns:
      urgency
    • setUrgency

      public void setUrgency(Urgency urgency)
    • putAdditionalProperty

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