com.tencentcloudapi.cdb.v20170320.models.BackupItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class BackupItem extends AbstractModel {
/**
* Name of the database to be backed up
*/
@SerializedName("Db")
@Expose
private String Db;
/**
* Name of the table to be backed up. If this parameter is passed in, the specified table in the database will be backed up; otherwise, the database will be backed up.
*/
@SerializedName("Table")
@Expose
private String Table;
/**
* Get Name of the database to be backed up
* @return Db Name of the database to be backed up
*/
public String getDb() {
return this.Db;
}
/**
* Set Name of the database to be backed up
* @param Db Name of the database to be backed up
*/
public void setDb(String Db) {
this.Db = Db;
}
/**
* Get Name of the table to be backed up. If this parameter is passed in, the specified table in the database will be backed up; otherwise, the database will be backed up.
* @return Table Name of the table to be backed up. If this parameter is passed in, the specified table in the database will be backed up; otherwise, the database will be backed up.
*/
public String getTable() {
return this.Table;
}
/**
* Set Name of the table to be backed up. If this parameter is passed in, the specified table in the database will be backed up; otherwise, the database will be backed up.
* @param Table Name of the table to be backed up. If this parameter is passed in, the specified table in the database will be backed up; otherwise, the database will be backed up.
*/
public void setTable(String Table) {
this.Table = Table;
}
public BackupItem() {
}
/**
* 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 BackupItem(BackupItem source) {
if (source.Db != null) {
this.Db = new String(source.Db);
}
if (source.Table != null) {
this.Table = new String(source.Table);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Db", this.Db);
this.setParamSimple(map, prefix + "Table", this.Table);
}
}