Class UsageQuotaBulkResultAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class UsageQuotaBulkResultAttributes extends Object
Attributes of a usage quota bulk write result. On success, all fields except error are present. On failure, only error is present and the other fields are omitted.
  • Field Details

  • Constructor Details

    • UsageQuotaBulkResultAttributes

      public UsageQuotaBulkResultAttributes()
  • Method Details

    • enforced

      public UsageQuotaBulkResultAttributes enforced(Boolean enforced)
    • getEnforced

      @Nullable public Boolean getEnforced()
      Whether usage above the limit is actively blocked instead of only tracked or alerted on. Omitted if this item failed to write.
      Returns:
      enforced
    • setEnforced

      public void setEnforced(Boolean enforced)
    • error

      public UsageQuotaBulkResultAttributes error(String error)
    • getError

      @Nullable public String getError()
      An error message describing why this item failed to write. Omitted if this item was written successfully.
      Returns:
      error
    • setError

      public void setError(String error)
    • orgPublicId

      public UsageQuotaBulkResultAttributes orgPublicId(String orgPublicId)
    • getOrgPublicId

      @Nullable public String getOrgPublicId()
      The public ID of the organization that owns the quota. Omitted if this item failed to write.
      Returns:
      orgPublicId
    • setOrgPublicId

      public void setOrgPublicId(String orgPublicId)
    • scope

    • putScopeItem

      public UsageQuotaBulkResultAttributes 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 contains exactly one entry. A value of "*" identifies the default quota applied to entities without a specific quota. This field is omitted for an organization-wide quota.
      Returns:
      scope
    • setScope

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

      public UsageQuotaBulkResultAttributes usageLimit(Double usageLimit)
    • getUsageLimit

      @Nullable public Double getUsageLimit()
      The quota limit in the usage units defined by the quota namespace. May be fractional for quotas configured before public writes required whole units. Omitted if this item failed to write.
      Returns:
      usageLimit
    • setUsageLimit

      public void setUsageLimit(Double usageLimit)
    • putAdditionalProperty

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