Class UsageQuotaCreateAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class UsageQuotaCreateAttributes extends Object
Attributes for creating or updating a usage quota by scope.
  • Field Details

  • Constructor Details

    • UsageQuotaCreateAttributes

      public UsageQuotaCreateAttributes()
    • UsageQuotaCreateAttributes

      public UsageQuotaCreateAttributes(Boolean enforced, Long usageLimit)
  • Method Details

    • enforced

      public UsageQuotaCreateAttributes enforced(Boolean enforced)
    • getEnforced

      public Boolean getEnforced()
      Whether to actively block usage above the limit instead of only tracking or alerting on it.
      Returns:
      enforced
    • setEnforced

      public void setEnforced(Boolean enforced)
    • scope

    • putScopeItem

      public UsageQuotaCreateAttributes putScopeItem(String key, String scopeItem)
    • getScope

      @Nullable public Map<String,String> getScope()
      A namespace-specific key and value identifying what the quota applies to within an organization. The object must contain exactly one entry. Use "*" as the value for the default quota applied to entities without a specific quota, or omit the scope for an organization-wide quota. A specific value must identify an existing user handle in the caller's organization when include_descendants is false. When include_descendants is true, the handle must exist in the caller's organization or in at least one targeted descendant organization; the quota is then applied only to the organizations where that handle exists, and the request fails only if the handle exists in none of them.
      Returns:
      scope
    • setScope

      public void setScope(Map<String,String> scope)
    • usageLimit

      public UsageQuotaCreateAttributes usageLimit(Long usageLimit)
    • getUsageLimit

      public Long getUsageLimit()
      The quota limit to set in the usage units defined by the quota namespace. For an organization-wide quota (scope omitted), the limit must be greater than the usage already recorded in the current period. minimum: 0
      Returns:
      usageLimit
    • setUsageLimit

      public void setUsageLimit(Long usageLimit)
    • putAdditionalProperty

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