Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this UsageQuotaCreateAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether to actively block usage above the limit instead of only tracking or alerting on it.getScope()A namespace-specific key and value identifying what the quota applies to within an organization.The quota limit to set in the usage units defined by the quota namespace.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putScopeItem(String key, String scopeItem) voidsetEnforced(Boolean enforced) voidvoidsetUsageLimit(Long usageLimit) toString()usageLimit(Long usageLimit)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ENFORCED
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_USAGE_LIMIT
- See Also:
-
-
Constructor Details
-
UsageQuotaCreateAttributes
public UsageQuotaCreateAttributes() -
UsageQuotaCreateAttributes
-
-
Method Details
-
enforced
-
getEnforced
Whether to actively block usage above the limit instead of only tracking or alerting on it.- Returns:
- enforced
-
setEnforced
-
scope
-
putScopeItem
-
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 wheninclude_descendantsis false. Wheninclude_descendantsis 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
-
usageLimit
-
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
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- UsageQuotaCreateAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this UsageQuotaCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-