public final class Flag extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Flag() |
| Modifier and Type | Method and Description |
|---|---|
Flag |
clone() |
List<Long> |
getAllowedIntValues()
Use this field if only certain integers are accepted.
|
List<String> |
getAllowedStringValues()
For *STRING* flags, a list of strings that the value can be set to.
|
List<String> |
getAppliesTo()
The database version this flag applies to.
|
Boolean |
getInBeta()
Whether or not the flag is considered in beta.
|
String |
getKind()
This is always *sql#flag*.
|
Long |
getMaxValue()
For *INTEGER* flags, the maximum allowed value.
|
Long |
getMinValue()
For *INTEGER* flags, the minimum allowed value.
|
String |
getName()
This is the name of the flag.
|
Boolean |
getRequiresRestart()
Indicates whether changing this flag will trigger a database restart.
|
String |
getType()
The type of the flag.
|
Flag |
set(String fieldName,
Object value) |
Flag |
setAllowedIntValues(List<Long> allowedIntValues)
Use this field if only certain integers are accepted.
|
Flag |
setAllowedStringValues(List<String> allowedStringValues)
For *STRING* flags, a list of strings that the value can be set to.
|
Flag |
setAppliesTo(List<String> appliesTo)
The database version this flag applies to.
|
Flag |
setInBeta(Boolean inBeta)
Whether or not the flag is considered in beta.
|
Flag |
setKind(String kind)
This is always *sql#flag*.
|
Flag |
setMaxValue(Long maxValue)
For *INTEGER* flags, the maximum allowed value.
|
Flag |
setMinValue(Long minValue)
For *INTEGER* flags, the minimum allowed value.
|
Flag |
setName(String name)
This is the name of the flag.
|
Flag |
setRequiresRestart(Boolean requiresRestart)
Indicates whether changing this flag will trigger a database restart.
|
Flag |
setType(String type)
The type of the flag.
|
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 List<Long> getAllowedIntValues()
null for nonepublic Flag setAllowedIntValues(List<Long> allowedIntValues)
allowedIntValues - allowedIntValues or null for nonepublic List<String> getAllowedStringValues()
null for nonepublic Flag setAllowedStringValues(List<String> allowedStringValues)
allowedStringValues - allowedStringValues or null for nonepublic List<String> getAppliesTo()
null for nonepublic Flag setAppliesTo(List<String> appliesTo)
appliesTo - appliesTo or null for nonepublic Boolean getInBeta()
null for nonepublic Flag setInBeta(Boolean inBeta)
inBeta - inBeta or null for nonepublic String getKind()
null for nonepublic Flag setKind(String kind)
kind - kind or null for nonepublic Long getMaxValue()
null for nonepublic Flag setMaxValue(Long maxValue)
maxValue - maxValue or null for nonepublic Long getMinValue()
null for nonepublic Flag setMinValue(Long minValue)
minValue - minValue or null for nonepublic String getName()
null for nonepublic Flag setName(String name)
name - name or null for nonepublic Boolean getRequiresRestart()
null for nonepublic Flag setRequiresRestart(Boolean requiresRestart)
requiresRestart - requiresRestart or null for nonepublic String getType()
null for nonepublic Flag setType(String type)
type - type or null for nonepublic Flag set(String fieldName, Object value)
set in class GenericJsonpublic Flag clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.