target.apidocs.com.google.api.services.sqladmin.model.Database.html Maven / Gradle / Ivy
The newest version!
Database (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.model
Class Database
- 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.Database
-
public final class Database
extends com.google.api.client.json.GenericJson
Represents a SQL database on the Cloud SQL instance.
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
Database()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Database
clone()
String
getCharset()
The Cloud SQL charset value.
String
getCollation()
The Cloud SQL collation value.
String
getEtag()
This field is deprecated and will be removed from a future version of the API.
String
getInstance()
The name of the Cloud SQL instance.
String
getKind()
This is always `sql#database`.
String
getName()
The name of the database in the Cloud SQL instance.
String
getProject()
The project ID of the project containing the Cloud SQL database.
String
getSelfLink()
The URI of this resource.
SqlServerDatabaseDetails
getSqlserverDatabaseDetails()
Database
set(String fieldName,
Object value)
Database
setCharset(String charset)
The Cloud SQL charset value.
Database
setCollation(String collation)
The Cloud SQL collation value.
Database
setEtag(String etag)
This field is deprecated and will be removed from a future version of the API.
Database
setInstance(String instance)
The name of the Cloud SQL instance.
Database
setKind(String kind)
This is always `sql#database`.
Database
setName(String name)
The name of the database in the Cloud SQL instance.
Database
setProject(String project)
The project ID of the project containing the Cloud SQL database.
Database
setSelfLink(String selfLink)
The URI of this resource.
Database
setSqlserverDatabaseDetails(SqlServerDatabaseDetails sqlserverDatabaseDetails)
-
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
-
getCharset
public String getCharset()
The Cloud SQL charset value.
- Returns:
- value or
null
for none
-
setCharset
public Database setCharset(String charset)
The Cloud SQL charset value.
- Parameters:
charset
- charset or null
for none
-
getCollation
public String getCollation()
The Cloud SQL collation value.
- Returns:
- value or
null
for none
-
setCollation
public Database setCollation(String collation)
The Cloud SQL collation value.
- Parameters:
collation
- collation or null
for none
-
getEtag
public String getEtag()
This field is deprecated and will be removed from a future version of the API.
- Returns:
- value or
null
for none
-
setEtag
public Database setEtag(String etag)
This field is deprecated and will be removed from a future version of the API.
- Parameters:
etag
- etag or null
for none
-
getInstance
public String getInstance()
The name of the Cloud SQL instance. This does not include the project ID.
- Returns:
- value or
null
for none
-
setInstance
public Database setInstance(String instance)
The name of the Cloud SQL instance. This does not include the project ID.
- Parameters:
instance
- instance or null
for none
-
getKind
public String getKind()
This is always `sql#database`.
- Returns:
- value or
null
for none
-
setKind
public Database setKind(String kind)
This is always `sql#database`.
- Parameters:
kind
- kind or null
for none
-
getName
public String getName()
The name of the database in the Cloud SQL instance. This does not include the project ID or
instance name.
- Returns:
- value or
null
for none
-
setName
public Database setName(String name)
The name of the database in the Cloud SQL instance. This does not include the project ID or
instance name.
- Parameters:
name
- name or null
for none
-
getProject
public String getProject()
The project ID of the project containing the Cloud SQL database. The Google apps domain is
prefixed if applicable.
- Returns:
- value or
null
for none
-
setProject
public Database setProject(String project)
The project ID of the project containing the Cloud SQL database. The Google apps domain is
prefixed if applicable.
- Parameters:
project
- project or null
for none
-
getSelfLink
public String getSelfLink()
The URI of this resource.
- Returns:
- value or
null
for none
-
setSelfLink
public Database setSelfLink(String selfLink)
The URI of this resource.
- Parameters:
selfLink
- selfLink or null
for none
-
getSqlserverDatabaseDetails
public SqlServerDatabaseDetails getSqlserverDatabaseDetails()
- Returns:
- value or
null
for none
-
setSqlserverDatabaseDetails
public Database setSqlserverDatabaseDetails(SqlServerDatabaseDetails sqlserverDatabaseDetails)
- Parameters:
sqlserverDatabaseDetails
- sqlserverDatabaseDetails or null
for none
-
set
public Database set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Database clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy