public class ModifyBackupStrategyRequest extends AbstractModel
Constructor and Description |
---|
ModifyBackupStrategyRequest() |
ModifyBackupStrategyRequest(ModifyBackupStrategyRequest 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[] |
getBackupCycle()
Get The days of the week on which backup will be performed when “BackupType” is `weekly`.
|
Long |
getBackupDay()
Get Backup interval in days when the `BackupType` is `daily`.
|
String |
getBackupModel()
Get Backup mode.
|
Long |
getBackupSaveDays()
Get Data (log) backup retention period.
|
Long |
getBackupTime()
Get Backup time.
|
String |
getBackupType()
Get Backup type.
|
String |
getInstanceId()
Get Instance ID.
|
Long |
getRegularBackupCounts()
Get The number of retained archive backups.
|
String |
getRegularBackupEnable()
Get Archive backup status.
|
Long |
getRegularBackupSaveDays()
Get Archive backup retention days.
|
String |
getRegularBackupStartTime()
Get Archive backup start date in YYYY-MM-DD format, which is the current time by default.
|
String |
getRegularBackupStrategy()
Get Archive backup policy.
|
void |
setBackupCycle(Long[] BackupCycle)
Set The days of the week on which backup will be performed when “BackupType” is `weekly`.
|
void |
setBackupDay(Long BackupDay)
Set Backup interval in days when the `BackupType` is `daily`.
|
void |
setBackupModel(String BackupModel)
Set Backup mode.
|
void |
setBackupSaveDays(Long BackupSaveDays)
Set Data (log) backup retention period.
|
void |
setBackupTime(Long BackupTime)
Set Backup time.
|
void |
setBackupType(String BackupType)
Set Backup type.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setRegularBackupCounts(Long RegularBackupCounts)
Set The number of retained archive backups.
|
void |
setRegularBackupEnable(String RegularBackupEnable)
Set Archive backup status.
|
void |
setRegularBackupSaveDays(Long RegularBackupSaveDays)
Set Archive backup retention days.
|
void |
setRegularBackupStartTime(String RegularBackupStartTime)
Set Archive backup start date in YYYY-MM-DD format, which is the current time by default.
|
void |
setRegularBackupStrategy(String RegularBackupStrategy)
Set Archive backup policy.
|
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 ModifyBackupStrategyRequest()
public ModifyBackupStrategyRequest(ModifyBackupStrategyRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID.public String getBackupType()
public void setBackupType(String BackupType)
BackupType
- Backup type. Valid values: `weekly` (when length(BackupDay) <=7 && length(BackupDay) >=2), `daily` (when length(BackupDay)=1). Default value: `daily`.public Long getBackupTime()
public void setBackupTime(Long BackupTime)
BackupTime
- Backup time. Value range: an integer from 0 to 23.public Long getBackupDay()
public void setBackupDay(Long BackupDay)
BackupDay
- Backup interval in days when the `BackupType` is `daily`. Valid value: 1.public String getBackupModel()
public void setBackupModel(String BackupModel)
BackupModel
- Backup mode. Valid values: `master_pkg` (archive the backup files of the primary node), `master_no_pkg` (do not archive the backup files of the primary node), `slave_pkg` (archive the backup files of the replica node), `slave_no_pkg` (do not archive the backup files of the replica node). Backup files of the replica node are supported only when Always On disaster recovery is enabled.public Long[] getBackupCycle()
public void setBackupCycle(Long[] BackupCycle)
BackupCycle
- The days of the week on which backup will be performed when “BackupType” is `weekly`. If data backup retention period is less than 7 days, the values will be 1-7, indicating that backup will be performed everyday by default; if data backup retention period is greater than or equal to 7 days, the values will be at least any two days, indicating that backup will be performed at least twice in a week by default.public Long getBackupSaveDays()
public void setBackupSaveDays(Long BackupSaveDays)
BackupSaveDays
- Data (log) backup retention period. Value range: 3-1830 days, default value: 7 days.public String getRegularBackupEnable()
public void setRegularBackupEnable(String RegularBackupEnable)
RegularBackupEnable
- Archive backup status. Valid values: `enable` (enabled); `disable` (disabled). Default value: `disable`.public Long getRegularBackupSaveDays()
public void setRegularBackupSaveDays(Long RegularBackupSaveDays)
RegularBackupSaveDays
- Archive backup retention days. Value range: 90–3650 days. Default value: 365 days.public String getRegularBackupStrategy()
public void setRegularBackupStrategy(String RegularBackupStrategy)
RegularBackupStrategy
- Archive backup policy. Valid values: `years` (yearly); `quarters (quarterly); `months` (monthly); Default value: `months`.public Long getRegularBackupCounts()
public void setRegularBackupCounts(Long RegularBackupCounts)
RegularBackupCounts
- The number of retained archive backups. Default value: `1`.public String getRegularBackupStartTime()
public void setRegularBackupStartTime(String RegularBackupStartTime)
RegularBackupStartTime
- Archive backup start date in YYYY-MM-DD format, which is the current time by default.Copyright © 2023. All rights reserved.