@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class UsageQuotaCreateAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ENFORCED |
static String |
JSON_PROPERTY_SCOPE |
static String |
JSON_PROPERTY_USAGE_LIMIT |
boolean |
unparsed |
| Constructor and Description |
|---|
UsageQuotaCreateAttributes() |
UsageQuotaCreateAttributes(Boolean enforced,
Long usageLimit) |
| Modifier and Type | Method and Description |
|---|---|
UsageQuotaCreateAttributes |
enforced(Boolean enforced) |
boolean |
equals(Object o)
Return true if this UsageQuotaCreateAttributes object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Boolean |
getEnforced()
Whether to actively block usage above the limit instead of only tracking or alerting on it.
|
Map<String,String> |
getScope()
A namespace-specific key and value identifying what the quota applies to within an
organization.
|
Long |
getUsageLimit()
The quota limit to set in the usage units defined by the quota namespace.
|
int |
hashCode() |
UsageQuotaCreateAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
UsageQuotaCreateAttributes |
putScopeItem(String key,
String scopeItem) |
UsageQuotaCreateAttributes |
scope(Map<String,String> scope) |
void |
setEnforced(Boolean enforced) |
void |
setScope(Map<String,String> scope) |
void |
setUsageLimit(Long usageLimit) |
String |
toString() |
UsageQuotaCreateAttributes |
usageLimit(Long usageLimit) |
public boolean unparsed
public static final String JSON_PROPERTY_ENFORCED
public static final String JSON_PROPERTY_SCOPE
public static final String JSON_PROPERTY_USAGE_LIMIT
public UsageQuotaCreateAttributes enforced(Boolean enforced)
public Boolean getEnforced()
public void setEnforced(Boolean enforced)
public UsageQuotaCreateAttributes scope(Map<String,String> scope)
public UsageQuotaCreateAttributes putScopeItem(String key, String scopeItem)
@Nullable public Map<String,String> getScope()
"*" 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.public UsageQuotaCreateAttributes usageLimit(Long usageLimit)
public Long getUsageLimit()
public void setUsageLimit(Long usageLimit)
public UsageQuotaCreateAttributes putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.