
target.apidocs.com.google.api.services.sqladmin.model.Flag.html Maven / Gradle / Ivy
Flag (Cloud SQL Admin API v1-rev20240912-2.0.0)
com.google.api.services.sqladmin.model
Class Flag
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sqladmin.model.Flag
-
public final class Flag
extends com.google.api.client.json.GenericJson
A flag resource.
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
- 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
Flag()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
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
-
getAllowedIntValues
public List<Long> getAllowedIntValues()
Use this field if only certain integers are accepted. Can be combined with min_value and
max_value to add additional values.
- Returns:
- value or
null
for none
-
setAllowedIntValues
public Flag setAllowedIntValues(List<Long> allowedIntValues)
Use this field if only certain integers are accepted. Can be combined with min_value and
max_value to add additional values.
- Parameters:
allowedIntValues
- allowedIntValues or null
for none
-
getAllowedStringValues
public List<String> getAllowedStringValues()
For `STRING` flags, a list of strings that the value can be set to.
- Returns:
- value or
null
for none
-
setAllowedStringValues
public Flag setAllowedStringValues(List<String> allowedStringValues)
For `STRING` flags, a list of strings that the value can be set to.
- Parameters:
allowedStringValues
- allowedStringValues or null
for none
-
getAppliesTo
public List<String> getAppliesTo()
The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, `MYSQL_8_0_18`,
`MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`,
`POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`,
`SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`,
`SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or
`SQLSERVER_2019_WEB`. See [the complete list](/sql/docs/mysql/admin-
api/rest/v1/SqlDatabaseVersion).
- Returns:
- value or
null
for none
-
setAppliesTo
public Flag setAppliesTo(List<String> appliesTo)
The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, `MYSQL_8_0_18`,
`MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`,
`POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`,
`SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`,
`SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or
`SQLSERVER_2019_WEB`. See [the complete list](/sql/docs/mysql/admin-
api/rest/v1/SqlDatabaseVersion).
- Parameters:
appliesTo
- appliesTo or null
for none
-
getInBeta
public Boolean getInBeta()
Whether or not the flag is considered in beta.
- Returns:
- value or
null
for none
-
setInBeta
public Flag setInBeta(Boolean inBeta)
Whether or not the flag is considered in beta.
- Parameters:
inBeta
- inBeta or null
for none
-
getKind
public String getKind()
This is always `sql#flag`.
- Returns:
- value or
null
for none
-
setKind
public Flag setKind(String kind)
This is always `sql#flag`.
- Parameters:
kind
- kind or null
for none
-
getMaxValue
public Long getMaxValue()
For `INTEGER` flags, the maximum allowed value.
- Returns:
- value or
null
for none
-
setMaxValue
public Flag setMaxValue(Long maxValue)
For `INTEGER` flags, the maximum allowed value.
- Parameters:
maxValue
- maxValue or null
for none
-
getMinValue
public Long getMinValue()
For `INTEGER` flags, the minimum allowed value.
- Returns:
- value or
null
for none
-
setMinValue
public Flag setMinValue(Long minValue)
For `INTEGER` flags, the minimum allowed value.
- Parameters:
minValue
- minValue or null
for none
-
getName
public String getName()
This is the name of the flag. Flag names always use underscores, not hyphens, for example:
`max_allowed_packet`
- Returns:
- value or
null
for none
-
setName
public Flag setName(String name)
This is the name of the flag. Flag names always use underscores, not hyphens, for example:
`max_allowed_packet`
- Parameters:
name
- name or null
for none
-
getRequiresRestart
public Boolean getRequiresRestart()
Indicates whether changing this flag will trigger a database restart. Only applicable to Second
Generation instances.
- Returns:
- value or
null
for none
-
setRequiresRestart
public Flag setRequiresRestart(Boolean requiresRestart)
Indicates whether changing this flag will trigger a database restart. Only applicable to Second
Generation instances.
- Parameters:
requiresRestart
- requiresRestart or null
for none
-
getType
public String getType()
The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER` or `NONE`. `NONE`
is used for flags that do not take a value, such as `skip_grant_tables`.
- Returns:
- value or
null
for none
-
setType
public Flag setType(String type)
The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER` or `NONE`. `NONE`
is used for flags that do not take a value, such as `skip_grant_tables`.
- Parameters:
type
- type or null
for none
-
set
public Flag set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Flag clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy