
com.tencentcloudapi.dts.v20180330.models.MigrateDetailInfo 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.dts.v20180330.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class MigrateDetailInfo extends AbstractModel{
/**
* 总步骤数
*/
@SerializedName("StepAll")
@Expose
private Long StepAll;
/**
* 当前步骤
*/
@SerializedName("StepNow")
@Expose
private Long StepNow;
/**
* 总进度,如:"10"
*/
@SerializedName("Progress")
@Expose
private String Progress;
/**
* 当前步骤进度,如:"1"
*/
@SerializedName("CurrentStepProgress")
@Expose
private String CurrentStepProgress;
/**
* 主从差距,MB;在增量同步阶段有效,目前支持产品为:redis和mysql
*/
@SerializedName("MasterSlaveDistance")
@Expose
private Long MasterSlaveDistance;
/**
* 主从差距,秒;在增量同步阶段有效,目前支持产品为:mysql
*/
@SerializedName("SecondsBehindMaster")
@Expose
private Long SecondsBehindMaster;
/**
* 步骤信息
*/
@SerializedName("StepInfo")
@Expose
private MigrateStepDetailInfo [] StepInfo;
/**
* Get 总步骤数
* @return StepAll 总步骤数
*/
public Long getStepAll() {
return this.StepAll;
}
/**
* Set 总步骤数
* @param StepAll 总步骤数
*/
public void setStepAll(Long StepAll) {
this.StepAll = StepAll;
}
/**
* Get 当前步骤
* @return StepNow 当前步骤
*/
public Long getStepNow() {
return this.StepNow;
}
/**
* Set 当前步骤
* @param StepNow 当前步骤
*/
public void setStepNow(Long StepNow) {
this.StepNow = StepNow;
}
/**
* Get 总进度,如:"10"
* @return Progress 总进度,如:"10"
*/
public String getProgress() {
return this.Progress;
}
/**
* Set 总进度,如:"10"
* @param Progress 总进度,如:"10"
*/
public void setProgress(String Progress) {
this.Progress = Progress;
}
/**
* Get 当前步骤进度,如:"1"
* @return CurrentStepProgress 当前步骤进度,如:"1"
*/
public String getCurrentStepProgress() {
return this.CurrentStepProgress;
}
/**
* Set 当前步骤进度,如:"1"
* @param CurrentStepProgress 当前步骤进度,如:"1"
*/
public void setCurrentStepProgress(String CurrentStepProgress) {
this.CurrentStepProgress = CurrentStepProgress;
}
/**
* Get 主从差距,MB;在增量同步阶段有效,目前支持产品为:redis和mysql
* @return MasterSlaveDistance 主从差距,MB;在增量同步阶段有效,目前支持产品为:redis和mysql
*/
public Long getMasterSlaveDistance() {
return this.MasterSlaveDistance;
}
/**
* Set 主从差距,MB;在增量同步阶段有效,目前支持产品为:redis和mysql
* @param MasterSlaveDistance 主从差距,MB;在增量同步阶段有效,目前支持产品为:redis和mysql
*/
public void setMasterSlaveDistance(Long MasterSlaveDistance) {
this.MasterSlaveDistance = MasterSlaveDistance;
}
/**
* Get 主从差距,秒;在增量同步阶段有效,目前支持产品为:mysql
* @return SecondsBehindMaster 主从差距,秒;在增量同步阶段有效,目前支持产品为:mysql
*/
public Long getSecondsBehindMaster() {
return this.SecondsBehindMaster;
}
/**
* Set 主从差距,秒;在增量同步阶段有效,目前支持产品为:mysql
* @param SecondsBehindMaster 主从差距,秒;在增量同步阶段有效,目前支持产品为:mysql
*/
public void setSecondsBehindMaster(Long SecondsBehindMaster) {
this.SecondsBehindMaster = SecondsBehindMaster;
}
/**
* Get 步骤信息
* @return StepInfo 步骤信息
*/
public MigrateStepDetailInfo [] getStepInfo() {
return this.StepInfo;
}
/**
* Set 步骤信息
* @param StepInfo 步骤信息
*/
public void setStepInfo(MigrateStepDetailInfo [] StepInfo) {
this.StepInfo = StepInfo;
}
public MigrateDetailInfo() {
}
/**
* 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 MigrateDetailInfo(MigrateDetailInfo source) {
if (source.StepAll != null) {
this.StepAll = new Long(source.StepAll);
}
if (source.StepNow != null) {
this.StepNow = new Long(source.StepNow);
}
if (source.Progress != null) {
this.Progress = new String(source.Progress);
}
if (source.CurrentStepProgress != null) {
this.CurrentStepProgress = new String(source.CurrentStepProgress);
}
if (source.MasterSlaveDistance != null) {
this.MasterSlaveDistance = new Long(source.MasterSlaveDistance);
}
if (source.SecondsBehindMaster != null) {
this.SecondsBehindMaster = new Long(source.SecondsBehindMaster);
}
if (source.StepInfo != null) {
this.StepInfo = new MigrateStepDetailInfo[source.StepInfo.length];
for (int i = 0; i < source.StepInfo.length; i++) {
this.StepInfo[i] = new MigrateStepDetailInfo(source.StepInfo[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "StepAll", this.StepAll);
this.setParamSimple(map, prefix + "StepNow", this.StepNow);
this.setParamSimple(map, prefix + "Progress", this.Progress);
this.setParamSimple(map, prefix + "CurrentStepProgress", this.CurrentStepProgress);
this.setParamSimple(map, prefix + "MasterSlaveDistance", this.MasterSlaveDistance);
this.setParamSimple(map, prefix + "SecondsBehindMaster", this.SecondsBehindMaster);
this.setParamArrayObj(map, prefix + "StepInfo.", this.StepInfo);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy