com.tencentcloudapi.cdb.v20170320.models.ModifyBackupConfigRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.cdb.v20170320.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyBackupConfigRequest extends AbstractModel{
/**
* Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page.
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Backup file retention period in days. Value range: 7-732.
*/
@SerializedName("ExpireDays")
@Expose
private Long ExpireDays;
/**
* (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.
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* Automatic backup mode. Only `physical` (physical cold backup) is supported
*/
@SerializedName("BackupMethod")
@Expose
private String BackupMethod;
/**
* Binlog retention period in days. Value range: 7-732. It cannot be greater than the retention period of backup files.
*/
@SerializedName("BinlogExpireDays")
@Expose
private Long BinlogExpireDays;
/**
* 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)
*/
@SerializedName("BackupTimeWindow")
@Expose
private CommonTimeWindow BackupTimeWindow;
/**
* Get Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page.
* @return InstanceId Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page.
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page.
* @param InstanceId Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page.
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Backup file retention period in days. Value range: 7-732.
* @return ExpireDays Backup file retention period in days. Value range: 7-732.
*/
public Long getExpireDays() {
return this.ExpireDays;
}
/**
* Set Backup file retention period in days. Value range: 7-732.
* @param ExpireDays Backup file retention period in days. Value range: 7-732.
*/
public void setExpireDays(Long ExpireDays) {
this.ExpireDays = ExpireDays;
}
/**
* Get (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.
* @return 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 getStartTime() {
return this.StartTime;
}
/**
* Set (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.
* @param 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 void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get Automatic backup mode. Only `physical` (physical cold backup) is supported
* @return BackupMethod Automatic backup mode. Only `physical` (physical cold backup) is supported
*/
public String getBackupMethod() {
return this.BackupMethod;
}
/**
* Set Automatic backup mode. Only `physical` (physical cold backup) is supported
* @param BackupMethod Automatic backup mode. Only `physical` (physical cold backup) is supported
*/
public void setBackupMethod(String BackupMethod) {
this.BackupMethod = BackupMethod;
}
/**
* Get Binlog retention period in days. Value range: 7-732. It cannot be greater than the retention period of backup files.
* @return BinlogExpireDays Binlog retention period in days. Value range: 7-732. It cannot be greater than the retention period of backup files.
*/
public Long getBinlogExpireDays() {
return this.BinlogExpireDays;
}
/**
* Set Binlog retention period in days. Value range: 7-732. It cannot be greater than the retention period of backup files.
* @param BinlogExpireDays Binlog retention period in days. Value range: 7-732. It cannot be greater than the retention period of backup files.
*/
public void setBinlogExpireDays(Long BinlogExpireDays) {
this.BinlogExpireDays = BinlogExpireDays;
}
/**
* 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. If this field is set, the `StartTime` field will be ignored)
* @return 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 CommonTimeWindow getBackupTimeWindow() {
return this.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. If this field is set, the `StartTime` field will be ignored)
* @param 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 void setBackupTimeWindow(CommonTimeWindow BackupTimeWindow) {
this.BackupTimeWindow = BackupTimeWindow;
}
public ModifyBackupConfigRequest() {
}
/**
* 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.
*/
public ModifyBackupConfigRequest(ModifyBackupConfigRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.ExpireDays != null) {
this.ExpireDays = new Long(source.ExpireDays);
}
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.BackupMethod != null) {
this.BackupMethod = new String(source.BackupMethod);
}
if (source.BinlogExpireDays != null) {
this.BinlogExpireDays = new Long(source.BinlogExpireDays);
}
if (source.BackupTimeWindow != null) {
this.BackupTimeWindow = new CommonTimeWindow(source.BackupTimeWindow);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "ExpireDays", this.ExpireDays);
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "BackupMethod", this.BackupMethod);
this.setParamSimple(map, prefix + "BinlogExpireDays", this.BinlogExpireDays);
this.setParamObj(map, prefix + "BackupTimeWindow.", this.BackupTimeWindow);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy