public final class QuotaLimit
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Service Consumer Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
QuotaLimit() |
Modifier and Type | Method and Description |
---|---|
QuotaLimit |
clone() |
java.lang.Long |
getDefaultLimit()
Default number of tokens that can be consumed during the specified duration.
|
java.lang.String |
getDescription()
Optional.
|
java.lang.String |
getDisplayName()
User-visible display name for this limit.
|
java.lang.String |
getDuration()
Duration of this limit in textual notation.
|
java.lang.Long |
getFreeTier()
Free tier value displayed in the Developers Console for this limit.
|
java.lang.Long |
getMaxLimit()
Maximum number of tokens that can be consumed during the specified duration.
|
java.lang.String |
getMetric()
The name of the metric this quota limit applies to.
|
java.lang.String |
getName()
Name of the quota limit.
|
java.lang.String |
getUnit()
Specify the unit of the quota limit.
|
java.util.Map<java.lang.String,java.lang.Long> |
getValues()
Tiered limit values.
|
QuotaLimit |
set(java.lang.String fieldName,
java.lang.Object value) |
QuotaLimit |
setDefaultLimit(java.lang.Long defaultLimit)
Default number of tokens that can be consumed during the specified duration.
|
QuotaLimit |
setDescription(java.lang.String description)
Optional.
|
QuotaLimit |
setDisplayName(java.lang.String displayName)
User-visible display name for this limit.
|
QuotaLimit |
setDuration(java.lang.String duration)
Duration of this limit in textual notation.
|
QuotaLimit |
setFreeTier(java.lang.Long freeTier)
Free tier value displayed in the Developers Console for this limit.
|
QuotaLimit |
setMaxLimit(java.lang.Long maxLimit)
Maximum number of tokens that can be consumed during the specified duration.
|
QuotaLimit |
setMetric(java.lang.String metric)
The name of the metric this quota limit applies to.
|
QuotaLimit |
setName(java.lang.String name)
Name of the quota limit.
|
QuotaLimit |
setUnit(java.lang.String unit)
Specify the unit of the quota limit.
|
QuotaLimit |
setValues(java.util.Map<java.lang.String,java.lang.Long> values)
Tiered limit values.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Long getDefaultLimit()
null
for nonepublic QuotaLimit setDefaultLimit(java.lang.Long defaultLimit)
defaultLimit
- defaultLimit or null
for nonepublic java.lang.String getDescription()
null
for nonepublic QuotaLimit setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.String getDisplayName()
null
for nonepublic QuotaLimit setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic java.lang.String getDuration()
null
for nonepublic QuotaLimit setDuration(java.lang.String duration)
duration
- duration or null
for nonepublic java.lang.Long getFreeTier()
null
for nonepublic QuotaLimit setFreeTier(java.lang.Long freeTier)
freeTier
- freeTier or null
for nonepublic java.lang.Long getMaxLimit()
null
for nonepublic QuotaLimit setMaxLimit(java.lang.Long maxLimit)
maxLimit
- maxLimit or null
for nonepublic java.lang.String getMetric()
null
for nonepublic QuotaLimit setMetric(java.lang.String metric)
metric
- metric or null
for nonepublic java.lang.String getName()
null
for nonepublic QuotaLimit setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getUnit()
null
for nonepublic QuotaLimit setUnit(java.lang.String unit)
unit
- unit or null
for nonepublic java.util.Map<java.lang.String,java.lang.Long> getValues()
null
for nonepublic QuotaLimit setValues(java.util.Map<java.lang.String,java.lang.Long> values)
values
- values or null
for nonepublic QuotaLimit set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public QuotaLimit clone()
clone
in class com.google.api.client.json.GenericJson