
com.tencentcloudapi.cdb.v20170320.models.UpgradeCDBProxyRequest 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.cdb.v20170320.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UpgradeCDBProxyRequest extends AbstractModel{
/**
* Instance ID
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Database proxy ID
*/
@SerializedName("ProxyGroupId")
@Expose
private String ProxyGroupId;
/**
* Number of proxy nodes
*/
@SerializedName("ProxyCount")
@Expose
private Long ProxyCount;
/**
* Number of CPU cores per proxy node
*/
@SerializedName("Cpu")
@Expose
private Long Cpu;
/**
* Memory per proxy node
*/
@SerializedName("Mem")
@Expose
private Long Mem;
/**
* Load rebalance mode. Valid values: `auto`, `manual`
*/
@SerializedName("ReloadBalance")
@Expose
private String ReloadBalance;
/**
* Upgrade time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time)
*/
@SerializedName("UpgradeTime")
@Expose
private String UpgradeTime;
/**
* Get Instance ID
* @return InstanceId Instance ID
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Instance ID
* @param InstanceId Instance ID
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Database proxy ID
* @return ProxyGroupId Database proxy ID
*/
public String getProxyGroupId() {
return this.ProxyGroupId;
}
/**
* Set Database proxy ID
* @param ProxyGroupId Database proxy ID
*/
public void setProxyGroupId(String ProxyGroupId) {
this.ProxyGroupId = ProxyGroupId;
}
/**
* Get Number of proxy nodes
* @return ProxyCount Number of proxy nodes
*/
public Long getProxyCount() {
return this.ProxyCount;
}
/**
* Set Number of proxy nodes
* @param ProxyCount Number of proxy nodes
*/
public void setProxyCount(Long ProxyCount) {
this.ProxyCount = ProxyCount;
}
/**
* Get Number of CPU cores per proxy node
* @return Cpu Number of CPU cores per proxy node
*/
public Long getCpu() {
return this.Cpu;
}
/**
* Set Number of CPU cores per proxy node
* @param Cpu Number of CPU cores per proxy node
*/
public void setCpu(Long Cpu) {
this.Cpu = Cpu;
}
/**
* Get Memory per proxy node
* @return Mem Memory per proxy node
*/
public Long getMem() {
return this.Mem;
}
/**
* Set Memory per proxy node
* @param Mem Memory per proxy node
*/
public void setMem(Long Mem) {
this.Mem = Mem;
}
/**
* Get Load rebalance mode. Valid values: `auto`, `manual`
* @return ReloadBalance Load rebalance mode. Valid values: `auto`, `manual`
*/
public String getReloadBalance() {
return this.ReloadBalance;
}
/**
* Set Load rebalance mode. Valid values: `auto`, `manual`
* @param ReloadBalance Load rebalance mode. Valid values: `auto`, `manual`
*/
public void setReloadBalance(String ReloadBalance) {
this.ReloadBalance = ReloadBalance;
}
/**
* Get Upgrade time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time)
* @return UpgradeTime Upgrade time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time)
*/
public String getUpgradeTime() {
return this.UpgradeTime;
}
/**
* Set Upgrade time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time)
* @param UpgradeTime Upgrade time. Valid values: `nowTime` (upgrade immediately), `timeWindow` (upgrade during instance maintenance time)
*/
public void setUpgradeTime(String UpgradeTime) {
this.UpgradeTime = UpgradeTime;
}
public UpgradeCDBProxyRequest() {
}
/**
* 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 UpgradeCDBProxyRequest(UpgradeCDBProxyRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.ProxyGroupId != null) {
this.ProxyGroupId = new String(source.ProxyGroupId);
}
if (source.ProxyCount != null) {
this.ProxyCount = new Long(source.ProxyCount);
}
if (source.Cpu != null) {
this.Cpu = new Long(source.Cpu);
}
if (source.Mem != null) {
this.Mem = new Long(source.Mem);
}
if (source.ReloadBalance != null) {
this.ReloadBalance = new String(source.ReloadBalance);
}
if (source.UpgradeTime != null) {
this.UpgradeTime = new String(source.UpgradeTime);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "ProxyGroupId", this.ProxyGroupId);
this.setParamSimple(map, prefix + "ProxyCount", this.ProxyCount);
this.setParamSimple(map, prefix + "Cpu", this.Cpu);
this.setParamSimple(map, prefix + "Mem", this.Mem);
this.setParamSimple(map, prefix + "ReloadBalance", this.ReloadBalance);
this.setParamSimple(map, prefix + "UpgradeTime", this.UpgradeTime);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy