All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.sqladmin.model.Flag.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241210-2.0.0
Show newest version






Flag (Cloud SQL Admin API v1-rev20240912-2.0.0)












com.google.api.services.sqladmin.model

Class Flag

    • Constructor Detail

      • Flag

        public Flag()
    • 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