com.tencentcloudapi.dcdb.v20180411.models.UpgradeDedicatedDCDBInstanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-dcdb Show documentation
Show all versions of tencentcloud-sdk-java-dcdb 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.dcdb.v20180411.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UpgradeDedicatedDCDBInstanceRequest extends AbstractModel{
/**
* 升级类型,取值为ADD,SPLIT和EXPAND。ADD-添加分片;SPLIT-切分某个分片;EXPAND-垂直扩容某个分片
*/
@SerializedName("UpgradeType")
@Expose
private String UpgradeType;
/**
* 实例ID,形如 dcdbt-mlfjm74h
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 当UpgradeType取值为ADD时,添加分片的配置参数
*/
@SerializedName("AddShardConfig")
@Expose
private AddShardConfig AddShardConfig;
/**
* 当UpgradeType取值为EXPAND时,垂直扩容分片的配置参数
*/
@SerializedName("ExpandShardConfig")
@Expose
private ExpandShardConfig ExpandShardConfig;
/**
* 当UpgradeType取值为SPLIT时,切分分片的配置参数
*/
@SerializedName("SplitShardConfig")
@Expose
private SplitShardConfig SplitShardConfig;
/**
* 错过切换时间窗口时,是否自动重试一次,0-否,1-是
*/
@SerializedName("SwitchAutoRetry")
@Expose
private Long SwitchAutoRetry;
/**
* 切换时间窗口开始时间
*/
@SerializedName("SwitchStartTime")
@Expose
private String SwitchStartTime;
/**
* 切换时间窗口结束时间
*/
@SerializedName("SwitchEndTime")
@Expose
private String SwitchEndTime;
/**
* Get 升级类型,取值为ADD,SPLIT和EXPAND。ADD-添加分片;SPLIT-切分某个分片;EXPAND-垂直扩容某个分片
* @return UpgradeType 升级类型,取值为ADD,SPLIT和EXPAND。ADD-添加分片;SPLIT-切分某个分片;EXPAND-垂直扩容某个分片
*/
public String getUpgradeType() {
return this.UpgradeType;
}
/**
* Set 升级类型,取值为ADD,SPLIT和EXPAND。ADD-添加分片;SPLIT-切分某个分片;EXPAND-垂直扩容某个分片
* @param UpgradeType 升级类型,取值为ADD,SPLIT和EXPAND。ADD-添加分片;SPLIT-切分某个分片;EXPAND-垂直扩容某个分片
*/
public void setUpgradeType(String UpgradeType) {
this.UpgradeType = UpgradeType;
}
/**
* Get 实例ID,形如 dcdbt-mlfjm74h
* @return InstanceId 实例ID,形如 dcdbt-mlfjm74h
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 实例ID,形如 dcdbt-mlfjm74h
* @param InstanceId 实例ID,形如 dcdbt-mlfjm74h
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 当UpgradeType取值为ADD时,添加分片的配置参数
* @return AddShardConfig 当UpgradeType取值为ADD时,添加分片的配置参数
*/
public AddShardConfig getAddShardConfig() {
return this.AddShardConfig;
}
/**
* Set 当UpgradeType取值为ADD时,添加分片的配置参数
* @param AddShardConfig 当UpgradeType取值为ADD时,添加分片的配置参数
*/
public void setAddShardConfig(AddShardConfig AddShardConfig) {
this.AddShardConfig = AddShardConfig;
}
/**
* Get 当UpgradeType取值为EXPAND时,垂直扩容分片的配置参数
* @return ExpandShardConfig 当UpgradeType取值为EXPAND时,垂直扩容分片的配置参数
*/
public ExpandShardConfig getExpandShardConfig() {
return this.ExpandShardConfig;
}
/**
* Set 当UpgradeType取值为EXPAND时,垂直扩容分片的配置参数
* @param ExpandShardConfig 当UpgradeType取值为EXPAND时,垂直扩容分片的配置参数
*/
public void setExpandShardConfig(ExpandShardConfig ExpandShardConfig) {
this.ExpandShardConfig = ExpandShardConfig;
}
/**
* Get 当UpgradeType取值为SPLIT时,切分分片的配置参数
* @return SplitShardConfig 当UpgradeType取值为SPLIT时,切分分片的配置参数
*/
public SplitShardConfig getSplitShardConfig() {
return this.SplitShardConfig;
}
/**
* Set 当UpgradeType取值为SPLIT时,切分分片的配置参数
* @param SplitShardConfig 当UpgradeType取值为SPLIT时,切分分片的配置参数
*/
public void setSplitShardConfig(SplitShardConfig SplitShardConfig) {
this.SplitShardConfig = SplitShardConfig;
}
/**
* Get 错过切换时间窗口时,是否自动重试一次,0-否,1-是
* @return SwitchAutoRetry 错过切换时间窗口时,是否自动重试一次,0-否,1-是
*/
public Long getSwitchAutoRetry() {
return this.SwitchAutoRetry;
}
/**
* Set 错过切换时间窗口时,是否自动重试一次,0-否,1-是
* @param SwitchAutoRetry 错过切换时间窗口时,是否自动重试一次,0-否,1-是
*/
public void setSwitchAutoRetry(Long SwitchAutoRetry) {
this.SwitchAutoRetry = SwitchAutoRetry;
}
/**
* Get 切换时间窗口开始时间
* @return SwitchStartTime 切换时间窗口开始时间
*/
public String getSwitchStartTime() {
return this.SwitchStartTime;
}
/**
* Set 切换时间窗口开始时间
* @param SwitchStartTime 切换时间窗口开始时间
*/
public void setSwitchStartTime(String SwitchStartTime) {
this.SwitchStartTime = SwitchStartTime;
}
/**
* Get 切换时间窗口结束时间
* @return SwitchEndTime 切换时间窗口结束时间
*/
public String getSwitchEndTime() {
return this.SwitchEndTime;
}
/**
* Set 切换时间窗口结束时间
* @param SwitchEndTime 切换时间窗口结束时间
*/
public void setSwitchEndTime(String SwitchEndTime) {
this.SwitchEndTime = SwitchEndTime;
}
public UpgradeDedicatedDCDBInstanceRequest() {
}
/**
* 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 UpgradeDedicatedDCDBInstanceRequest(UpgradeDedicatedDCDBInstanceRequest source) {
if (source.UpgradeType != null) {
this.UpgradeType = new String(source.UpgradeType);
}
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.AddShardConfig != null) {
this.AddShardConfig = new AddShardConfig(source.AddShardConfig);
}
if (source.ExpandShardConfig != null) {
this.ExpandShardConfig = new ExpandShardConfig(source.ExpandShardConfig);
}
if (source.SplitShardConfig != null) {
this.SplitShardConfig = new SplitShardConfig(source.SplitShardConfig);
}
if (source.SwitchAutoRetry != null) {
this.SwitchAutoRetry = new Long(source.SwitchAutoRetry);
}
if (source.SwitchStartTime != null) {
this.SwitchStartTime = new String(source.SwitchStartTime);
}
if (source.SwitchEndTime != null) {
this.SwitchEndTime = new String(source.SwitchEndTime);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "UpgradeType", this.UpgradeType);
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamObj(map, prefix + "AddShardConfig.", this.AddShardConfig);
this.setParamObj(map, prefix + "ExpandShardConfig.", this.ExpandShardConfig);
this.setParamObj(map, prefix + "SplitShardConfig.", this.SplitShardConfig);
this.setParamSimple(map, prefix + "SwitchAutoRetry", this.SwitchAutoRetry);
this.setParamSimple(map, prefix + "SwitchStartTime", this.SwitchStartTime);
this.setParamSimple(map, prefix + "SwitchEndTime", this.SwitchEndTime);
}
}