public final class TargetMetric
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 Cloud SQL Admin 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TargetMetric() |
| Modifier and Type | Method and Description |
|---|---|
TargetMetric |
clone() |
String |
getMetric()
The metric name to be used for auto scaling.
|
Float |
getTargetValue()
The target value for the metric.
|
TargetMetric |
set(String fieldName,
Object value) |
TargetMetric |
setMetric(String metric)
The metric name to be used for auto scaling.
|
TargetMetric |
setTargetValue(Float targetValue)
The target value for the metric.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getMetric()
null for nonepublic TargetMetric setMetric(String metric)
metric - metric or null for nonepublic Float getTargetValue()
null for nonepublic TargetMetric setTargetValue(Float targetValue)
targetValue - targetValue or null for nonepublic TargetMetric set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TargetMetric clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.