public final class BackupConfiguration 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 Cloud SQL Admin 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 |
|---|
BackupConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
BackupConfiguration |
clone() |
BackupRetentionSettings |
getBackupRetentionSettings()
Backup retention settings.
|
Boolean |
getBinaryLogEnabled()
(MySQL only) Whether binary log is enabled.
|
Boolean |
getEnabled()
Whether this configuration is enabled.
|
String |
getKind()
This is always `sql#backupConfiguration`.
|
String |
getLocation()
Location of the backup
|
Boolean |
getPointInTimeRecoveryEnabled()
(Postgres only) Whether point in time recovery is enabled.
|
Boolean |
getReplicationLogArchivingEnabled()
Reserved for future use.
|
String |
getStartTime()
Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
|
Integer |
getTransactionLogRetentionDays()
The number of days of transaction logs we retain for point in time restore, from 1-7.
|
BackupConfiguration |
set(String fieldName,
Object value) |
BackupConfiguration |
setBackupRetentionSettings(BackupRetentionSettings backupRetentionSettings)
Backup retention settings.
|
BackupConfiguration |
setBinaryLogEnabled(Boolean binaryLogEnabled)
(MySQL only) Whether binary log is enabled.
|
BackupConfiguration |
setEnabled(Boolean enabled)
Whether this configuration is enabled.
|
BackupConfiguration |
setKind(String kind)
This is always `sql#backupConfiguration`.
|
BackupConfiguration |
setLocation(String location)
Location of the backup
|
BackupConfiguration |
setPointInTimeRecoveryEnabled(Boolean pointInTimeRecoveryEnabled)
(Postgres only) Whether point in time recovery is enabled.
|
BackupConfiguration |
setReplicationLogArchivingEnabled(Boolean replicationLogArchivingEnabled)
Reserved for future use.
|
BackupConfiguration |
setStartTime(String startTime)
Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
|
BackupConfiguration |
setTransactionLogRetentionDays(Integer transactionLogRetentionDays)
The number of days of transaction logs we retain for point in time restore, from 1-7.
|
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 BackupRetentionSettings getBackupRetentionSettings()
null for nonepublic BackupConfiguration setBackupRetentionSettings(BackupRetentionSettings backupRetentionSettings)
backupRetentionSettings - backupRetentionSettings or null for nonepublic Boolean getBinaryLogEnabled()
null for nonepublic BackupConfiguration setBinaryLogEnabled(Boolean binaryLogEnabled)
binaryLogEnabled - binaryLogEnabled or null for nonepublic Boolean getEnabled()
null for nonepublic BackupConfiguration setEnabled(Boolean enabled)
enabled - enabled or null for nonepublic String getKind()
null for nonepublic BackupConfiguration setKind(String kind)
kind - kind or null for nonepublic String getLocation()
null for nonepublic BackupConfiguration setLocation(String location)
location - location or null for nonepublic Boolean getPointInTimeRecoveryEnabled()
null for nonepublic BackupConfiguration setPointInTimeRecoveryEnabled(Boolean pointInTimeRecoveryEnabled)
pointInTimeRecoveryEnabled - pointInTimeRecoveryEnabled or null for nonepublic Boolean getReplicationLogArchivingEnabled()
null for nonepublic BackupConfiguration setReplicationLogArchivingEnabled(Boolean replicationLogArchivingEnabled)
replicationLogArchivingEnabled - replicationLogArchivingEnabled or null for nonepublic String getStartTime()
null for nonepublic BackupConfiguration setStartTime(String startTime)
startTime - startTime or null for nonepublic Integer getTransactionLogRetentionDays()
null for nonepublic BackupConfiguration setTransactionLogRetentionDays(Integer transactionLogRetentionDays)
transactionLogRetentionDays - transactionLogRetentionDays or null for nonepublic BackupConfiguration set(String fieldName, Object value)
set in class GenericJsonpublic BackupConfiguration clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.