public final class MigrationJob 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 Database Migration 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 |
|---|
MigrationJob() |
| Modifier and Type | Method and Description |
|---|---|
MigrationJob |
clone() |
String |
getCreateTime()
Output only.
|
String |
getDestination()
Required.
|
DatabaseType |
getDestinationDatabase()
The database engine type and provider of the destination.
|
String |
getDisplayName()
The migration job display name.
|
String |
getDumpPath()
The path to the dump file in Google Cloud Storage, in the format:
(gs://[BUCKET_NAME]/[OBJECT_NAME]).
|
String |
getDuration()
Output only.
|
String |
getEndTime()
Output only.
|
Status |
getError()
Output only.
|
Map<String,String> |
getLabels()
The resource labels for migration job to use to annotate any related underlying resources such
as Compute Engine VMs.
|
String |
getName()
The name (URI) of this migration job resource, in the form of:
projects/{project}/locations/{location}/instances/{instance}.
|
String |
getPhase()
Output only.
|
ReverseSshConnectivity |
getReverseSshConnectivity()
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
|
String |
getSource()
Required.
|
DatabaseType |
getSourceDatabase()
The database engine type and provider of the source.
|
String |
getState()
The current migration job state.
|
StaticIpConnectivity |
getStaticIpConnectivity()
static ip connectivity data (default, no additional details needed).
|
String |
getType()
Required.
|
String |
getUpdateTime()
Output only.
|
VpcPeeringConnectivity |
getVpcPeeringConnectivity()
The details of the VPC network that the source database is located in.
|
MigrationJob |
set(String fieldName,
Object value) |
MigrationJob |
setCreateTime(String createTime)
Output only.
|
MigrationJob |
setDestination(String destination)
Required.
|
MigrationJob |
setDestinationDatabase(DatabaseType destinationDatabase)
The database engine type and provider of the destination.
|
MigrationJob |
setDisplayName(String displayName)
The migration job display name.
|
MigrationJob |
setDumpPath(String dumpPath)
The path to the dump file in Google Cloud Storage, in the format:
(gs://[BUCKET_NAME]/[OBJECT_NAME]).
|
MigrationJob |
setDuration(String duration)
Output only.
|
MigrationJob |
setEndTime(String endTime)
Output only.
|
MigrationJob |
setError(Status error)
Output only.
|
MigrationJob |
setLabels(Map<String,String> labels)
The resource labels for migration job to use to annotate any related underlying resources such
as Compute Engine VMs.
|
MigrationJob |
setName(String name)
The name (URI) of this migration job resource, in the form of:
projects/{project}/locations/{location}/instances/{instance}.
|
MigrationJob |
setPhase(String phase)
Output only.
|
MigrationJob |
setReverseSshConnectivity(ReverseSshConnectivity reverseSshConnectivity)
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
|
MigrationJob |
setSource(String source)
Required.
|
MigrationJob |
setSourceDatabase(DatabaseType sourceDatabase)
The database engine type and provider of the source.
|
MigrationJob |
setState(String state)
The current migration job state.
|
MigrationJob |
setStaticIpConnectivity(StaticIpConnectivity staticIpConnectivity)
static ip connectivity data (default, no additional details needed).
|
MigrationJob |
setType(String type)
Required.
|
MigrationJob |
setUpdateTime(String updateTime)
Output only.
|
MigrationJob |
setVpcPeeringConnectivity(VpcPeeringConnectivity vpcPeeringConnectivity)
The details of the VPC network that the source database is located in.
|
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 String getCreateTime()
null for nonepublic MigrationJob setCreateTime(String createTime)
createTime - createTime or null for nonepublic String getDestination()
null for nonepublic MigrationJob setDestination(String destination)
destination - destination or null for nonepublic DatabaseType getDestinationDatabase()
null for nonepublic MigrationJob setDestinationDatabase(DatabaseType destinationDatabase)
destinationDatabase - destinationDatabase or null for nonepublic String getDisplayName()
null for nonepublic MigrationJob setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getDumpPath()
null for nonepublic MigrationJob setDumpPath(String dumpPath)
dumpPath - dumpPath or null for nonepublic String getDuration()
null for nonepublic MigrationJob setDuration(String duration)
duration - duration or null for nonepublic String getEndTime()
null for nonepublic MigrationJob setEndTime(String endTime)
endTime - endTime or null for nonepublic Status getError()
null for nonepublic MigrationJob setError(Status error)
error - error or null for nonepublic Map<String,String> getLabels()
null for nonepublic MigrationJob setLabels(Map<String,String> labels)
labels - labels or null for nonepublic String getName()
null for nonepublic MigrationJob setName(String name)
name - name or null for nonepublic String getPhase()
null for nonepublic MigrationJob setPhase(String phase)
phase - phase or null for nonepublic ReverseSshConnectivity getReverseSshConnectivity()
null for nonepublic MigrationJob setReverseSshConnectivity(ReverseSshConnectivity reverseSshConnectivity)
reverseSshConnectivity - reverseSshConnectivity or null for nonepublic String getSource()
null for nonepublic MigrationJob setSource(String source)
source - source or null for nonepublic DatabaseType getSourceDatabase()
null for nonepublic MigrationJob setSourceDatabase(DatabaseType sourceDatabase)
sourceDatabase - sourceDatabase or null for nonepublic String getState()
null for nonepublic MigrationJob setState(String state)
state - state or null for nonepublic StaticIpConnectivity getStaticIpConnectivity()
null for nonepublic MigrationJob setStaticIpConnectivity(StaticIpConnectivity staticIpConnectivity)
staticIpConnectivity - staticIpConnectivity or null for nonepublic String getType()
null for nonepublic MigrationJob setType(String type)
type - type or null for nonepublic String getUpdateTime()
null for nonepublic MigrationJob setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic VpcPeeringConnectivity getVpcPeeringConnectivity()
null for nonepublic MigrationJob setVpcPeeringConnectivity(VpcPeeringConnectivity vpcPeeringConnectivity)
vpcPeeringConnectivity - vpcPeeringConnectivity or null for nonepublic MigrationJob set(String fieldName, Object value)
set in class GenericJsonpublic MigrationJob clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.