target.apidocs.com.google.api.services.compute.model.Quota.html Maven / Gradle / Ivy
Quota (Compute Engine API v1-rev20240919-2.0.0)
com.google.api.services.compute.model
Class Quota
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.Quota
-
public final class Quota
extends com.google.api.client.json.GenericJson
A quotas entry.
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 Compute Engine API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Quota()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Quota
clone()
Double
getLimit()
[Output Only] Quota limit for this metric.
String
getMetric()
[Output Only] Name of the quota metric.
String
getOwner()
[Output Only] Owning resource.
Double
getUsage()
[Output Only] Current usage of this metric.
Quota
set(String fieldName,
Object value)
Quota
setLimit(Double limit)
[Output Only] Quota limit for this metric.
Quota
setMetric(String metric)
[Output Only] Name of the quota metric.
Quota
setOwner(String owner)
[Output Only] Owning resource.
Quota
setUsage(Double usage)
[Output Only] Current usage of this metric.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getLimit
public Double getLimit()
[Output Only] Quota limit for this metric.
- Returns:
- value or
null
for none
-
setLimit
public Quota setLimit(Double limit)
[Output Only] Quota limit for this metric.
- Parameters:
limit
- limit or null
for none
-
getMetric
public String getMetric()
[Output Only] Name of the quota metric.
- Returns:
- value or
null
for none
-
setMetric
public Quota setMetric(String metric)
[Output Only] Name of the quota metric.
- Parameters:
metric
- metric or null
for none
-
getOwner
public String getOwner()
[Output Only] Owning resource. This is the resource on which this quota is applied.
- Returns:
- value or
null
for none
-
setOwner
public Quota setOwner(String owner)
[Output Only] Owning resource. This is the resource on which this quota is applied.
- Parameters:
owner
- owner or null
for none
-
getUsage
public Double getUsage()
[Output Only] Current usage of this metric.
- Returns:
- value or
null
for none
-
setUsage
public Quota setUsage(Double usage)
[Output Only] Current usage of this metric.
- Parameters:
usage
- usage or null
for none
-
set
public Quota set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Quota clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.