com.tencentcloudapi.cynosdb.v20190107.models.DescribeBackupConfigResponse 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.cynosdb.v20190107.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeBackupConfigResponse extends AbstractModel{
/**
* Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
*/
@SerializedName("BackupTimeBeg")
@Expose
private Long BackupTimeBeg;
/**
* Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
*/
@SerializedName("BackupTimeEnd")
@Expose
private Long BackupTimeEnd;
/**
* Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600*24*7 = 604800
*/
@SerializedName("ReserveDuration")
@Expose
private Long ReserveDuration;
/**
* Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("BackupFreq")
@Expose
private String [] BackupFreq;
/**
* Backup mode. logic: logic backup; snapshot: snapshot backup
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("BackupType")
@Expose
private String BackupType;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
* @return BackupTimeBeg Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
*/
public Long getBackupTimeBeg() {
return this.BackupTimeBeg;
}
/**
* Set Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
* @param BackupTimeBeg Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
*/
public void setBackupTimeBeg(Long BackupTimeBeg) {
this.BackupTimeBeg = BackupTimeBeg;
}
/**
* Get Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
* @return BackupTimeEnd Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
*/
public Long getBackupTimeEnd() {
return this.BackupTimeEnd;
}
/**
* Set Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
* @param BackupTimeEnd Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively
*/
public void setBackupTimeEnd(Long BackupTimeEnd) {
this.BackupTimeEnd = BackupTimeEnd;
}
/**
* Get Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600*24*7 = 604800
* @return ReserveDuration Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600*24*7 = 604800
*/
public Long getReserveDuration() {
return this.ReserveDuration;
}
/**
* Set Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600*24*7 = 604800
* @param ReserveDuration Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600*24*7 = 604800
*/
public void setReserveDuration(Long ReserveDuration) {
this.ReserveDuration = ReserveDuration;
}
/**
* Get Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup
Note: this field may return null, indicating that no valid values can be obtained.
* @return BackupFreq Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String [] getBackupFreq() {
return this.BackupFreq;
}
/**
* Set Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup
Note: this field may return null, indicating that no valid values can be obtained.
* @param BackupFreq Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setBackupFreq(String [] BackupFreq) {
this.BackupFreq = BackupFreq;
}
/**
* Get Backup mode. logic: logic backup; snapshot: snapshot backup
Note: this field may return null, indicating that no valid values can be obtained.
* @return BackupType Backup mode. logic: logic backup; snapshot: snapshot backup
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getBackupType() {
return this.BackupType;
}
/**
* Set Backup mode. logic: logic backup; snapshot: snapshot backup
Note: this field may return null, indicating that no valid values can be obtained.
* @param BackupType Backup mode. logic: logic backup; snapshot: snapshot backup
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setBackupType(String BackupType) {
this.BackupType = BackupType;
}
/**
* Get The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @return RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
public String getRequestId() {
return this.RequestId;
}
/**
* Set The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @param RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
public void setRequestId(String RequestId) {
this.RequestId = RequestId;
}
public DescribeBackupConfigResponse() {
}
/**
* 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 DescribeBackupConfigResponse(DescribeBackupConfigResponse source) {
if (source.BackupTimeBeg != null) {
this.BackupTimeBeg = new Long(source.BackupTimeBeg);
}
if (source.BackupTimeEnd != null) {
this.BackupTimeEnd = new Long(source.BackupTimeEnd);
}
if (source.ReserveDuration != null) {
this.ReserveDuration = new Long(source.ReserveDuration);
}
if (source.BackupFreq != null) {
this.BackupFreq = new String[source.BackupFreq.length];
for (int i = 0; i < source.BackupFreq.length; i++) {
this.BackupFreq[i] = new String(source.BackupFreq[i]);
}
}
if (source.BackupType != null) {
this.BackupType = new String(source.BackupType);
}
if (source.RequestId != null) {
this.RequestId = new String(source.RequestId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "BackupTimeBeg", this.BackupTimeBeg);
this.setParamSimple(map, prefix + "BackupTimeEnd", this.BackupTimeEnd);
this.setParamSimple(map, prefix + "ReserveDuration", this.ReserveDuration);
this.setParamArraySimple(map, prefix + "BackupFreq.", this.BackupFreq);
this.setParamSimple(map, prefix + "BackupType", this.BackupType);
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy