Class RuleAttributesRequest

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RuleAttributesRequest extends Object
Attributes for creating or updating a rule. Server-managed fields (created_at, modified_at, custom) are excluded.
  • Field Details

  • Constructor Details

    • RuleAttributesRequest

      public RuleAttributesRequest()
  • Method Details

    • description

      public RuleAttributesRequest description(String description)
    • getDescription

      @Nullable public String getDescription()
      Explanation of the rule.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • enabled

      public RuleAttributesRequest enabled(Boolean enabled)
    • getEnabled

      @Nullable public Boolean getEnabled()
      If enabled, the rule is calculated as part of the score.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • level

      public RuleAttributesRequest level(Integer level)
    • getLevel

      @Nullable public Integer getLevel()
      The maturity level of the rule (1, 2, or 3). minimum: 1 maximum: 3
      Returns:
      level
    • setLevel

      public void setLevel(Integer level)
    • name

      public RuleAttributesRequest name(String name)
    • getName

      @Nullable public String getName()
      Name of the rule.
      Returns:
      name
    • setName

      public void setName(String name)
    • owner

      public RuleAttributesRequest owner(String owner)
    • getOwner

      @Nullable public String getOwner()
      Owner of the rule.
      Returns:
      owner
    • setOwner

      public void setOwner(String owner)
    • scopeQuery

      public RuleAttributesRequest scopeQuery(String scopeQuery)
    • getScopeQuery

      @Nullable public String getScopeQuery()
      A query to filter which entities this rule applies to.
      Returns:
      scopeQuery
    • setScopeQuery

      public void setScopeQuery(String scopeQuery)
    • scorecardName

      public RuleAttributesRequest scorecardName(String scorecardName)
    • getScorecardName

      @Nullable public String getScorecardName()
      The scorecard name to which this rule must belong.
      Returns:
      scorecardName
    • setScorecardName

      public void setScorecardName(String scorecardName)
    • putAdditionalProperty

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