public class ModifyBackupConfigRequest extends AbstractModel
Constructor and Description |
---|
ModifyBackupConfigRequest() |
ModifyBackupConfigRequest(ModifyBackupConfigRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getBackupArchiveDays()
Get The period (in days) of how long a data backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires.
|
String |
getBackupMethod()
Get Automatic backup mode.
|
Long |
getBackupPeriodSaveCount()
Get Number of archive backups.
|
Long |
getBackupPeriodSaveDays()
Get Maximum days of archive backup retention.
|
String |
getBackupPeriodSaveInterval()
Get Archive backup retention period.
|
Long |
getBackupStandbyDays()
Get The period (in days) of how long a data backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires.
|
CommonTimeWindow |
getBackupTimeWindow()
Get Backup time window; for example, to set up backup between 10:00 and 14:00 on every Tuesday and Sunday, you should set this parameter as follows: {"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (Note: You can set up backup on different days, but the backup time windows need to be the same.
|
Long |
getBinlogArchiveDays()
Get The period (in days) of how long a log backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires.
|
Long |
getBinlogExpireDays()
Get Binlog retention period in days.
|
Long |
getBinlogStandbyDays()
Get The period (in days) of how long a log backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires.
|
String |
getEnableBackupArchive()
Get Whether to enable the archive backup.
|
String |
getEnableBackupPeriodLongTermSave()
Get Switch for long-term backup retention (This field can be ignored, for its feature hasn’t been launched).
|
String |
getEnableBackupPeriodSave()
Get Switch for periodic archive.
|
String |
getEnableBackupStandby()
Get Whether to enable the standard storage policy for data backup.
|
String |
getEnableBinlogArchive()
Get Whether to enable the archive backup of the log.
|
String |
getEnableBinlogStandby()
Get Whether to enable the standard storage policy for log backup.
|
Long |
getExpireDays()
Get Backup file retention period in days.
|
String |
getInstanceId()
Get Instance ID in the format of cdb-c1nl9rpv.
|
String |
getStartBackupPeriodSaveDate()
Get The start time in the format of yyyy-mm-dd HH:MM:SS, which is used to enable archive backup retention policy.
|
String |
getStartTime()
Get (This parameter will be disused.
|
void |
setBackupArchiveDays(Long BackupArchiveDays)
Set The period (in days) of how long a data backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires.
|
void |
setBackupMethod(String BackupMethod)
Set Automatic backup mode.
|
void |
setBackupPeriodSaveCount(Long BackupPeriodSaveCount)
Set Number of archive backups.
|
void |
setBackupPeriodSaveDays(Long BackupPeriodSaveDays)
Set Maximum days of archive backup retention.
|
void |
setBackupPeriodSaveInterval(String BackupPeriodSaveInterval)
Set Archive backup retention period.
|
void |
setBackupStandbyDays(Long BackupStandbyDays)
Set The period (in days) of how long a data backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires.
|
void |
setBackupTimeWindow(CommonTimeWindow BackupTimeWindow)
Set Backup time window; for example, to set up backup between 10:00 and 14:00 on every Tuesday and Sunday, you should set this parameter as follows: {"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (Note: You can set up backup on different days, but the backup time windows need to be the same.
|
void |
setBinlogArchiveDays(Long BinlogArchiveDays)
Set The period (in days) of how long a log backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires.
|
void |
setBinlogExpireDays(Long BinlogExpireDays)
Set Binlog retention period in days.
|
void |
setBinlogStandbyDays(Long BinlogStandbyDays)
Set The period (in days) of how long a log backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires.
|
void |
setEnableBackupArchive(String EnableBackupArchive)
Set Whether to enable the archive backup.
|
void |
setEnableBackupPeriodLongTermSave(String EnableBackupPeriodLongTermSave)
Set Switch for long-term backup retention (This field can be ignored, for its feature hasn’t been launched).
|
void |
setEnableBackupPeriodSave(String EnableBackupPeriodSave)
Set Switch for periodic archive.
|
void |
setEnableBackupStandby(String EnableBackupStandby)
Set Whether to enable the standard storage policy for data backup.
|
void |
setEnableBinlogArchive(String EnableBinlogArchive)
Set Whether to enable the archive backup of the log.
|
void |
setEnableBinlogStandby(String EnableBinlogStandby)
Set Whether to enable the standard storage policy for log backup.
|
void |
setExpireDays(Long ExpireDays)
Set Backup file retention period in days.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of cdb-c1nl9rpv.
|
void |
setStartBackupPeriodSaveDate(String StartBackupPeriodSaveDate)
Set The start time in the format of yyyy-mm-dd HH:MM:SS, which is used to enable archive backup retention policy.
|
void |
setStartTime(String StartTime)
Set (This parameter will be disused.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public ModifyBackupConfigRequest()
public ModifyBackupConfigRequest(ModifyBackupConfigRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page.public Long getExpireDays()
public void setExpireDays(Long ExpireDays)
ExpireDays
- Backup file retention period in days. Value range: 7-1830.public String getStartTime()
public void setStartTime(String StartTime)
StartTime
- (This parameter will be disused. The `BackupTimeWindow` parameter is recommended.) Backup time range in the format of 02:00-06:00, with the start time and end time on the hour. Valid values: 00:00-12:00, 02:00-06:00, 06:00-10:00, 10:00-14:00, 14:00-18:00, 18:00-22:00, 22:00-02:00.public String getBackupMethod()
public void setBackupMethod(String BackupMethod)
BackupMethod
- Automatic backup mode. Only `physical` (physical cold backup) is supportedpublic Long getBinlogExpireDays()
public void setBinlogExpireDays(Long BinlogExpireDays)
BinlogExpireDays
- Binlog retention period in days. Value range: 7-1830. It can’t be greater than the retention period of backup files.public CommonTimeWindow getBackupTimeWindow()
public void setBackupTimeWindow(CommonTimeWindow BackupTimeWindow)
BackupTimeWindow
- Backup time window; for example, to set up backup between 10:00 and 14:00 on every Tuesday and Sunday, you should set this parameter as follows: {"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (Note: You can set up backup on different days, but the backup time windows need to be the same. If this field is set, the `StartTime` field will be ignored)public String getEnableBackupPeriodSave()
public void setEnableBackupPeriodSave(String EnableBackupPeriodSave)
EnableBackupPeriodSave
- Switch for periodic archive. Valid values: `off` (disable), `on` (enable). Default value:`off`. When you enable the periodic archive policy for the first time, you need to enter the `BackupPeriodSaveDays`, `BackupPeriodSaveInterval`, `BackupPeriodSaveCount`, and `StartBackupPeriodSaveDate` parameters; otherwise, the policy will not take effect.public String getEnableBackupPeriodLongTermSave()
public void setEnableBackupPeriodLongTermSave(String EnableBackupPeriodLongTermSave)
EnableBackupPeriodLongTermSave
- Switch for long-term backup retention (This field can be ignored, for its feature hasn’t been launched). Valid values: `off` (disable), `on` (enable). Default value: `off`. Once enabled, the parameters (BackupPeriodSaveDays, BackupPeriodSaveInterval, and BackupPeriodSaveCount) will be invalid.public Long getBackupPeriodSaveDays()
public void setBackupPeriodSaveDays(Long BackupPeriodSaveDays)
BackupPeriodSaveDays
- Maximum days of archive backup retention. Valid range: 90-3650. Default value: 1080.public String getBackupPeriodSaveInterval()
public void setBackupPeriodSaveInterval(String BackupPeriodSaveInterval)
BackupPeriodSaveInterval
- Archive backup retention period. Valid values: `weekly` (a week), `monthly` (a month), `quarterly` (a quarter), `yearly` (a year). Default value: `monthly`.public Long getBackupPeriodSaveCount()
public void setBackupPeriodSaveCount(Long BackupPeriodSaveCount)
BackupPeriodSaveCount
- Number of archive backups. Minimum value: `1`, Maximum value: Number of non-archive backups in archive backup retention period. Default value: `1`.public String getStartBackupPeriodSaveDate()
public void setStartBackupPeriodSaveDate(String StartBackupPeriodSaveDate)
StartBackupPeriodSaveDate
- The start time in the format of yyyy-mm-dd HH:MM:SS, which is used to enable archive backup retention policy.public String getEnableBackupArchive()
public void setEnableBackupArchive(String EnableBackupArchive)
EnableBackupArchive
- Whether to enable the archive backup. Valid values: `off` (disable), `on` (enable). Default value: `off`.public Long getBackupArchiveDays()
public void setBackupArchiveDays(Long BackupArchiveDays)
BackupArchiveDays
- The period (in days) of how long a data backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires.public Long getBinlogArchiveDays()
public void setBinlogArchiveDays(Long BinlogArchiveDays)
BinlogArchiveDays
- The period (in days) of how long a log backup is retained before being archived, which falls between 180 days and the number of days from the time it is created until it expires.public String getEnableBinlogArchive()
public void setEnableBinlogArchive(String EnableBinlogArchive)
EnableBinlogArchive
- Whether to enable the archive backup of the log. Valid values: `off` (disable), `on` (enable). Default value: `off`.public String getEnableBackupStandby()
public void setEnableBackupStandby(String EnableBackupStandby)
EnableBackupStandby
- Whether to enable the standard storage policy for data backup. Valid values: `off` (disable), `on` (enable). Default value: `off`.public Long getBackupStandbyDays()
public void setBackupStandbyDays(Long BackupStandbyDays)
BackupStandbyDays
- The period (in days) of how long a data backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires. If the archive backup is enabled, this period cannot be greater than archive backup period.public String getEnableBinlogStandby()
public void setEnableBinlogStandby(String EnableBinlogStandby)
EnableBinlogStandby
- Whether to enable the standard storage policy for log backup. Valid values: `off` (disable), `on` (enable). Default value: `off`.public Long getBinlogStandbyDays()
public void setBinlogStandbyDays(Long BinlogStandbyDays)
BinlogStandbyDays
- The period (in days) of how long a log backup is retained before switching to standard storage, which falls between 30 days and the number of days from the time it is created until it expires. If the archive backup is enabled, this period cannot be greater than archive backup period.Copyright © 2023. All rights reserved.