public final class ImportContext
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
| Modifier and Type | Class and Description |
|---|---|
static class |
ImportContext.BakImportOptions
Import parameters specific to SQL Server .BAK files
|
static class |
ImportContext.CsvImportOptions
Options for importing data as CSV.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ImportContext() |
| Modifier and Type | Method and Description |
|---|---|
ImportContext |
clone() |
ImportContext.BakImportOptions |
getBakImportOptions()
Import parameters specific to SQL Server .BAK files
|
ImportContext.CsvImportOptions |
getCsvImportOptions()
Options for importing data as CSV.
|
String |
getDatabase()
The target database for the import.
|
String |
getFileType()
The file type for the specified uri.
|
String |
getImportUser()
The PostgreSQL user for this import operation.
|
String |
getKind()
This is always `sql#importContext`.
|
String |
getUri()
Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`.
|
ImportContext |
set(String fieldName,
Object value) |
ImportContext |
setBakImportOptions(ImportContext.BakImportOptions bakImportOptions)
Import parameters specific to SQL Server .BAK files
|
ImportContext |
setCsvImportOptions(ImportContext.CsvImportOptions csvImportOptions)
Options for importing data as CSV.
|
ImportContext |
setDatabase(String database)
The target database for the import.
|
ImportContext |
setFileType(String fileType)
The file type for the specified uri.
|
ImportContext |
setImportUser(String importUser)
The PostgreSQL user for this import operation.
|
ImportContext |
setKind(String kind)
This is always `sql#importContext`.
|
ImportContext |
setUri(String uri)
Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`.
|
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 ImportContext.BakImportOptions getBakImportOptions()
null for nonepublic ImportContext setBakImportOptions(ImportContext.BakImportOptions bakImportOptions)
bakImportOptions - bakImportOptions or null for nonepublic ImportContext.CsvImportOptions getCsvImportOptions()
null for nonepublic ImportContext setCsvImportOptions(ImportContext.CsvImportOptions csvImportOptions)
csvImportOptions - csvImportOptions or null for nonepublic String getDatabase()
null for nonepublic ImportContext setDatabase(String database)
database - database or null for nonepublic String getFileType()
null for nonepublic ImportContext setFileType(String fileType)
fileType - fileType or null for nonepublic String getImportUser()
null for nonepublic ImportContext setImportUser(String importUser)
importUser - importUser or null for nonepublic String getKind()
null for nonepublic ImportContext setKind(String kind)
kind - kind or null for nonepublic String getUri()
null for nonepublic ImportContext setUri(String uri)
uri - uri or null for nonepublic ImportContext set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic ImportContext clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.