com.tencentcloudapi.dts.v20211206.models.Table Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-dts Show documentation
Show all versions of tencentcloud-sdk-java-dts Show documentation
Tencent Cloud Open 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.dts.v20211206.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Table extends AbstractModel{
/**
* 表名
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("TableName")
@Expose
private String TableName;
/**
* 新表名
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("NewTableName")
@Expose
private String NewTableName;
/**
* 过滤条件
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("FilterCondition")
@Expose
private String FilterCondition;
/**
* 同步临时表,注意此配置与NewTableName互斥,只能使用其中一种。当配置的同步对象为表级别且TableEditMode为pt时此项有意义,针对pt-osc等工具在同步过程中产生的临时表进行同步,需要提前将可能的临时表配置在这里,否则不会同步任何临时表。示例,如要对t1进行pt-osc操作,此项配置应该为["\_t1\_new","\_t1\_old"];如要对t1进行gh-ost操作,此项配置应该为["\_t1\_ghc","\_t1\_gho","\_t1\_del"],pt-osc与gh-ost产生的临时表可同时配置。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("TmpTables")
@Expose
private String [] TmpTables;
/**
* 编辑表类型,rename(表映射),pt(同步附加表)
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("TableEditMode")
@Expose
private String TableEditMode;
/**
* Get 表名
注意:此字段可能返回 null,表示取不到有效值。
* @return TableName 表名
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getTableName() {
return this.TableName;
}
/**
* Set 表名
注意:此字段可能返回 null,表示取不到有效值。
* @param TableName 表名
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setTableName(String TableName) {
this.TableName = TableName;
}
/**
* Get 新表名
注意:此字段可能返回 null,表示取不到有效值。
* @return NewTableName 新表名
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getNewTableName() {
return this.NewTableName;
}
/**
* Set 新表名
注意:此字段可能返回 null,表示取不到有效值。
* @param NewTableName 新表名
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setNewTableName(String NewTableName) {
this.NewTableName = NewTableName;
}
/**
* Get 过滤条件
注意:此字段可能返回 null,表示取不到有效值。
* @return FilterCondition 过滤条件
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getFilterCondition() {
return this.FilterCondition;
}
/**
* Set 过滤条件
注意:此字段可能返回 null,表示取不到有效值。
* @param FilterCondition 过滤条件
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setFilterCondition(String FilterCondition) {
this.FilterCondition = FilterCondition;
}
/**
* Get 同步临时表,注意此配置与NewTableName互斥,只能使用其中一种。当配置的同步对象为表级别且TableEditMode为pt时此项有意义,针对pt-osc等工具在同步过程中产生的临时表进行同步,需要提前将可能的临时表配置在这里,否则不会同步任何临时表。示例,如要对t1进行pt-osc操作,此项配置应该为["\_t1\_new","\_t1\_old"];如要对t1进行gh-ost操作,此项配置应该为["\_t1\_ghc","\_t1\_gho","\_t1\_del"],pt-osc与gh-ost产生的临时表可同时配置。
注意:此字段可能返回 null,表示取不到有效值。
* @return TmpTables 同步临时表,注意此配置与NewTableName互斥,只能使用其中一种。当配置的同步对象为表级别且TableEditMode为pt时此项有意义,针对pt-osc等工具在同步过程中产生的临时表进行同步,需要提前将可能的临时表配置在这里,否则不会同步任何临时表。示例,如要对t1进行pt-osc操作,此项配置应该为["\_t1\_new","\_t1\_old"];如要对t1进行gh-ost操作,此项配置应该为["\_t1\_ghc","\_t1\_gho","\_t1\_del"],pt-osc与gh-ost产生的临时表可同时配置。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String [] getTmpTables() {
return this.TmpTables;
}
/**
* Set 同步临时表,注意此配置与NewTableName互斥,只能使用其中一种。当配置的同步对象为表级别且TableEditMode为pt时此项有意义,针对pt-osc等工具在同步过程中产生的临时表进行同步,需要提前将可能的临时表配置在这里,否则不会同步任何临时表。示例,如要对t1进行pt-osc操作,此项配置应该为["\_t1\_new","\_t1\_old"];如要对t1进行gh-ost操作,此项配置应该为["\_t1\_ghc","\_t1\_gho","\_t1\_del"],pt-osc与gh-ost产生的临时表可同时配置。
注意:此字段可能返回 null,表示取不到有效值。
* @param TmpTables 同步临时表,注意此配置与NewTableName互斥,只能使用其中一种。当配置的同步对象为表级别且TableEditMode为pt时此项有意义,针对pt-osc等工具在同步过程中产生的临时表进行同步,需要提前将可能的临时表配置在这里,否则不会同步任何临时表。示例,如要对t1进行pt-osc操作,此项配置应该为["\_t1\_new","\_t1\_old"];如要对t1进行gh-ost操作,此项配置应该为["\_t1\_ghc","\_t1\_gho","\_t1\_del"],pt-osc与gh-ost产生的临时表可同时配置。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setTmpTables(String [] TmpTables) {
this.TmpTables = TmpTables;
}
/**
* Get 编辑表类型,rename(表映射),pt(同步附加表)
注意:此字段可能返回 null,表示取不到有效值。
* @return TableEditMode 编辑表类型,rename(表映射),pt(同步附加表)
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getTableEditMode() {
return this.TableEditMode;
}
/**
* Set 编辑表类型,rename(表映射),pt(同步附加表)
注意:此字段可能返回 null,表示取不到有效值。
* @param TableEditMode 编辑表类型,rename(表映射),pt(同步附加表)
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setTableEditMode(String TableEditMode) {
this.TableEditMode = TableEditMode;
}
public Table() {
}
/**
* 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 Table(Table source) {
if (source.TableName != null) {
this.TableName = new String(source.TableName);
}
if (source.NewTableName != null) {
this.NewTableName = new String(source.NewTableName);
}
if (source.FilterCondition != null) {
this.FilterCondition = new String(source.FilterCondition);
}
if (source.TmpTables != null) {
this.TmpTables = new String[source.TmpTables.length];
for (int i = 0; i < source.TmpTables.length; i++) {
this.TmpTables[i] = new String(source.TmpTables[i]);
}
}
if (source.TableEditMode != null) {
this.TableEditMode = new String(source.TableEditMode);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "TableName", this.TableName);
this.setParamSimple(map, prefix + "NewTableName", this.NewTableName);
this.setParamSimple(map, prefix + "FilterCondition", this.FilterCondition);
this.setParamArraySimple(map, prefix + "TmpTables.", this.TmpTables);
this.setParamSimple(map, prefix + "TableEditMode", this.TableEditMode);
}
}