
com.tencentcloudapi.cynosdb.v20190107.models.CreateProxyRequest 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.cynosdb.v20190107.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 CreateProxyRequest extends AbstractModel {
/**
* 集群ID
*/
@SerializedName("ClusterId")
@Expose
private String ClusterId;
/**
* cpu核数
*/
@SerializedName("Cpu")
@Expose
private Long Cpu;
/**
* 内存
*/
@SerializedName("Mem")
@Expose
private Long Mem;
/**
* 私有网络ID,默认与集群私有网络ID保持一致
*/
@SerializedName("UniqueVpcId")
@Expose
private String UniqueVpcId;
/**
* 私有网络子网ID,默认与集群子网ID保持一致
*/
@SerializedName("UniqueSubnetId")
@Expose
private String UniqueSubnetId;
/**
* 数据库代理组节点个数
*/
@SerializedName("ProxyCount")
@Expose
private Long ProxyCount;
/**
* 连接池类型:SessionConnectionPool(会话级别连接池 )
*/
@SerializedName("ConnectionPoolType")
@Expose
private String ConnectionPoolType;
/**
* 是否开启连接池,yes-开启,no-不开启
*/
@SerializedName("OpenConnectionPool")
@Expose
private String OpenConnectionPool;
/**
* 连接池阈值:单位(秒)
*/
@SerializedName("ConnectionPoolTimeOut")
@Expose
private Long ConnectionPoolTimeOut;
/**
* 安全组ID数组
*/
@SerializedName("SecurityGroupIds")
@Expose
private String [] SecurityGroupIds;
/**
* 描述说明
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* 数据库节点信息
*/
@SerializedName("ProxyZones")
@Expose
private ProxyZone [] ProxyZones;
/**
* Get 集群ID
* @return ClusterId 集群ID
*/
public String getClusterId() {
return this.ClusterId;
}
/**
* Set 集群ID
* @param ClusterId 集群ID
*/
public void setClusterId(String ClusterId) {
this.ClusterId = ClusterId;
}
/**
* Get cpu核数
* @return Cpu cpu核数
*/
public Long getCpu() {
return this.Cpu;
}
/**
* Set cpu核数
* @param Cpu cpu核数
*/
public void setCpu(Long Cpu) {
this.Cpu = Cpu;
}
/**
* Get 内存
* @return Mem 内存
*/
public Long getMem() {
return this.Mem;
}
/**
* Set 内存
* @param Mem 内存
*/
public void setMem(Long Mem) {
this.Mem = Mem;
}
/**
* Get 私有网络ID,默认与集群私有网络ID保持一致
* @return UniqueVpcId 私有网络ID,默认与集群私有网络ID保持一致
*/
public String getUniqueVpcId() {
return this.UniqueVpcId;
}
/**
* Set 私有网络ID,默认与集群私有网络ID保持一致
* @param UniqueVpcId 私有网络ID,默认与集群私有网络ID保持一致
*/
public void setUniqueVpcId(String UniqueVpcId) {
this.UniqueVpcId = UniqueVpcId;
}
/**
* Get 私有网络子网ID,默认与集群子网ID保持一致
* @return UniqueSubnetId 私有网络子网ID,默认与集群子网ID保持一致
*/
public String getUniqueSubnetId() {
return this.UniqueSubnetId;
}
/**
* Set 私有网络子网ID,默认与集群子网ID保持一致
* @param UniqueSubnetId 私有网络子网ID,默认与集群子网ID保持一致
*/
public void setUniqueSubnetId(String UniqueSubnetId) {
this.UniqueSubnetId = UniqueSubnetId;
}
/**
* Get 数据库代理组节点个数
* @return ProxyCount 数据库代理组节点个数
*/
public Long getProxyCount() {
return this.ProxyCount;
}
/**
* Set 数据库代理组节点个数
* @param ProxyCount 数据库代理组节点个数
*/
public void setProxyCount(Long ProxyCount) {
this.ProxyCount = ProxyCount;
}
/**
* Get 连接池类型:SessionConnectionPool(会话级别连接池 )
* @return ConnectionPoolType 连接池类型:SessionConnectionPool(会话级别连接池 )
*/
public String getConnectionPoolType() {
return this.ConnectionPoolType;
}
/**
* Set 连接池类型:SessionConnectionPool(会话级别连接池 )
* @param ConnectionPoolType 连接池类型:SessionConnectionPool(会话级别连接池 )
*/
public void setConnectionPoolType(String ConnectionPoolType) {
this.ConnectionPoolType = ConnectionPoolType;
}
/**
* Get 是否开启连接池,yes-开启,no-不开启
* @return OpenConnectionPool 是否开启连接池,yes-开启,no-不开启
*/
public String getOpenConnectionPool() {
return this.OpenConnectionPool;
}
/**
* Set 是否开启连接池,yes-开启,no-不开启
* @param OpenConnectionPool 是否开启连接池,yes-开启,no-不开启
*/
public void setOpenConnectionPool(String OpenConnectionPool) {
this.OpenConnectionPool = OpenConnectionPool;
}
/**
* Get 连接池阈值:单位(秒)
* @return ConnectionPoolTimeOut 连接池阈值:单位(秒)
*/
public Long getConnectionPoolTimeOut() {
return this.ConnectionPoolTimeOut;
}
/**
* Set 连接池阈值:单位(秒)
* @param ConnectionPoolTimeOut 连接池阈值:单位(秒)
*/
public void setConnectionPoolTimeOut(Long ConnectionPoolTimeOut) {
this.ConnectionPoolTimeOut = ConnectionPoolTimeOut;
}
/**
* Get 安全组ID数组
* @return SecurityGroupIds 安全组ID数组
*/
public String [] getSecurityGroupIds() {
return this.SecurityGroupIds;
}
/**
* Set 安全组ID数组
* @param SecurityGroupIds 安全组ID数组
*/
public void setSecurityGroupIds(String [] SecurityGroupIds) {
this.SecurityGroupIds = SecurityGroupIds;
}
/**
* Get 描述说明
* @return Description 描述说明
*/
public String getDescription() {
return this.Description;
}
/**
* Set 描述说明
* @param Description 描述说明
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get 数据库节点信息
* @return ProxyZones 数据库节点信息
*/
public ProxyZone [] getProxyZones() {
return this.ProxyZones;
}
/**
* Set 数据库节点信息
* @param ProxyZones 数据库节点信息
*/
public void setProxyZones(ProxyZone [] ProxyZones) {
this.ProxyZones = ProxyZones;
}
public CreateProxyRequest() {
}
/**
* 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 CreateProxyRequest(CreateProxyRequest source) {
if (source.ClusterId != null) {
this.ClusterId = new String(source.ClusterId);
}
if (source.Cpu != null) {
this.Cpu = new Long(source.Cpu);
}
if (source.Mem != null) {
this.Mem = new Long(source.Mem);
}
if (source.UniqueVpcId != null) {
this.UniqueVpcId = new String(source.UniqueVpcId);
}
if (source.UniqueSubnetId != null) {
this.UniqueSubnetId = new String(source.UniqueSubnetId);
}
if (source.ProxyCount != null) {
this.ProxyCount = new Long(source.ProxyCount);
}
if (source.ConnectionPoolType != null) {
this.ConnectionPoolType = new String(source.ConnectionPoolType);
}
if (source.OpenConnectionPool != null) {
this.OpenConnectionPool = new String(source.OpenConnectionPool);
}
if (source.ConnectionPoolTimeOut != null) {
this.ConnectionPoolTimeOut = new Long(source.ConnectionPoolTimeOut);
}
if (source.SecurityGroupIds != null) {
this.SecurityGroupIds = new String[source.SecurityGroupIds.length];
for (int i = 0; i < source.SecurityGroupIds.length; i++) {
this.SecurityGroupIds[i] = new String(source.SecurityGroupIds[i]);
}
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.ProxyZones != null) {
this.ProxyZones = new ProxyZone[source.ProxyZones.length];
for (int i = 0; i < source.ProxyZones.length; i++) {
this.ProxyZones[i] = new ProxyZone(source.ProxyZones[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
this.setParamSimple(map, prefix + "Cpu", this.Cpu);
this.setParamSimple(map, prefix + "Mem", this.Mem);
this.setParamSimple(map, prefix + "UniqueVpcId", this.UniqueVpcId);
this.setParamSimple(map, prefix + "UniqueSubnetId", this.UniqueSubnetId);
this.setParamSimple(map, prefix + "ProxyCount", this.ProxyCount);
this.setParamSimple(map, prefix + "ConnectionPoolType", this.ConnectionPoolType);
this.setParamSimple(map, prefix + "OpenConnectionPool", this.OpenConnectionPool);
this.setParamSimple(map, prefix + "ConnectionPoolTimeOut", this.ConnectionPoolTimeOut);
this.setParamArraySimple(map, prefix + "SecurityGroupIds.", this.SecurityGroupIds);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamArrayObj(map, prefix + "ProxyZones.", this.ProxyZones);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy