target.apidocs.com.google.api.services.sqladmin.model.CloneContext.html Maven / Gradle / Ivy
The newest version!
CloneContext (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.model
Class CloneContext
- 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.CloneContext
-
public final class CloneContext
extends com.google.api.client.json.GenericJson
Database instance clone context.
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
CloneContext()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CloneContext
clone()
String
getAllocatedIpRange()
The name of the allocated ip range for the private ip Cloud SQL instance.
BinLogCoordinates
getBinLogCoordinates()
Binary log coordinates, if specified, identify the position up to which the source instance is
cloned.
List<String>
getDatabaseNames()
(SQL Server only) Clone only the specified databases from the source instance.
String
getDestinationInstanceName()
Name of the Cloud SQL instance to be created as a clone.
String
getKind()
This is always `sql#cloneContext`.
Long
getPitrTimestampMs()
Reserved for future use.
String
getPointInTime()
Timestamp, if specified, identifies the time to which the source instance is cloned.
String
getPreferredSecondaryZone()
Optional.
String
getPreferredZone()
Optional.
CloneContext
set(String fieldName,
Object value)
CloneContext
setAllocatedIpRange(String allocatedIpRange)
The name of the allocated ip range for the private ip Cloud SQL instance.
CloneContext
setBinLogCoordinates(BinLogCoordinates binLogCoordinates)
Binary log coordinates, if specified, identify the position up to which the source instance is
cloned.
CloneContext
setDatabaseNames(List<String> databaseNames)
(SQL Server only) Clone only the specified databases from the source instance.
CloneContext
setDestinationInstanceName(String destinationInstanceName)
Name of the Cloud SQL instance to be created as a clone.
CloneContext
setKind(String kind)
This is always `sql#cloneContext`.
CloneContext
setPitrTimestampMs(Long pitrTimestampMs)
Reserved for future use.
CloneContext
setPointInTime(String pointInTime)
Timestamp, if specified, identifies the time to which the source instance is cloned.
CloneContext
setPreferredSecondaryZone(String preferredSecondaryZone)
Optional.
CloneContext
setPreferredZone(String preferredZone)
Optional.
-
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
-
getAllocatedIpRange
public String getAllocatedIpRange()
The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-
managed-services-default". If set, the cloned instance ip will be created in the allocated
range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035).
Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
- Returns:
- value or
null
for none
-
setAllocatedIpRange
public CloneContext setAllocatedIpRange(String allocatedIpRange)
The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-
managed-services-default". If set, the cloned instance ip will be created in the allocated
range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035).
Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
- Parameters:
allocatedIpRange
- allocatedIpRange or null
for none
-
getBinLogCoordinates
public BinLogCoordinates getBinLogCoordinates()
Binary log coordinates, if specified, identify the position up to which the source instance is
cloned. If not specified, the source instance is cloned up to the most recent binary log
coordinates.
- Returns:
- value or
null
for none
-
setBinLogCoordinates
public CloneContext setBinLogCoordinates(BinLogCoordinates binLogCoordinates)
Binary log coordinates, if specified, identify the position up to which the source instance is
cloned. If not specified, the source instance is cloned up to the most recent binary log
coordinates.
- Parameters:
binLogCoordinates
- binLogCoordinates or null
for none
-
getDatabaseNames
public List<String> getDatabaseNames()
(SQL Server only) Clone only the specified databases from the source instance. Clone all
databases if empty.
- Returns:
- value or
null
for none
-
setDatabaseNames
public CloneContext setDatabaseNames(List<String> databaseNames)
(SQL Server only) Clone only the specified databases from the source instance. Clone all
databases if empty.
- Parameters:
databaseNames
- databaseNames or null
for none
-
getDestinationInstanceName
public String getDestinationInstanceName()
Name of the Cloud SQL instance to be created as a clone.
- Returns:
- value or
null
for none
-
setDestinationInstanceName
public CloneContext setDestinationInstanceName(String destinationInstanceName)
Name of the Cloud SQL instance to be created as a clone.
- Parameters:
destinationInstanceName
- destinationInstanceName or null
for none
-
getKind
public String getKind()
This is always `sql#cloneContext`.
- Returns:
- value or
null
for none
-
setKind
public CloneContext setKind(String kind)
This is always `sql#cloneContext`.
- Parameters:
kind
- kind or null
for none
-
getPitrTimestampMs
public Long getPitrTimestampMs()
Reserved for future use.
- Returns:
- value or
null
for none
-
setPitrTimestampMs
public CloneContext setPitrTimestampMs(Long pitrTimestampMs)
Reserved for future use.
- Parameters:
pitrTimestampMs
- pitrTimestampMs or null
for none
-
getPointInTime
public String getPointInTime()
Timestamp, if specified, identifies the time to which the source instance is cloned.
- Returns:
- value or
null
for none
-
setPointInTime
public CloneContext setPointInTime(String pointInTime)
Timestamp, if specified, identifies the time to which the source instance is cloned.
- Parameters:
pointInTime
- pointInTime or null
for none
-
getPreferredSecondaryZone
public String getPreferredSecondaryZone()
Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified
zones. If not specified, clone to the same secondary zone as the source instance. This value
cannot be the same as the preferred_zone field. This field applies to all DB types.
- Returns:
- value or
null
for none
-
setPreferredSecondaryZone
public CloneContext setPreferredSecondaryZone(String preferredSecondaryZone)
Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified
zones. If not specified, clone to the same secondary zone as the source instance. This value
cannot be the same as the preferred_zone field. This field applies to all DB types.
- Parameters:
preferredSecondaryZone
- preferredSecondaryZone or null
for none
-
getPreferredZone
public String getPreferredZone()
Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If
no zone is specified, clone to the same primary zone as the source instance. This field applies
to all DB types.
- Returns:
- value or
null
for none
-
setPreferredZone
public CloneContext setPreferredZone(String preferredZone)
Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If
no zone is specified, clone to the same primary zone as the source instance. This field applies
to all DB types.
- Parameters:
preferredZone
- preferredZone or null
for none
-
set
public CloneContext set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public CloneContext 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