![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.cdb.v20170320.models.CreateCdbProxyAddressRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.cdb.v20170320.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 CreateCdbProxyAddressRequest extends AbstractModel {
/**
* Proxy group ID
*/
@SerializedName("ProxyGroupId")
@Expose
private String ProxyGroupId;
/**
* Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`.
*/
@SerializedName("WeightMode")
@Expose
private String WeightMode;
/**
* Whether to remove delayed read-only instances from the proxy group. Valid values: `true`, `false`.
*/
@SerializedName("IsKickOut")
@Expose
private Boolean IsKickOut;
/**
* Least read-only instances. Minimum value: `0`
*/
@SerializedName("MinCount")
@Expose
private Long MinCount;
/**
* The delay threshold. Minimum value: `0`
*/
@SerializedName("MaxDelay")
@Expose
private Long MaxDelay;
/**
* Whether to enable failover. Valid values: `true`, `false`.
*/
@SerializedName("FailOver")
@Expose
private Boolean FailOver;
/**
* Whether to automatically add newly created read-only instances. Valid values: `true`, `false`.
*/
@SerializedName("AutoAddRo")
@Expose
private Boolean AutoAddRo;
/**
* Whether it is read-only. Valid values: `true`, `false`.
*/
@SerializedName("ReadOnly")
@Expose
private Boolean ReadOnly;
/**
* Whether to enable transaction splitting. Valid values: `true`, `false`.
*/
@SerializedName("TransSplit")
@Expose
private Boolean TransSplit;
/**
* Assignment of read/write weights
*/
@SerializedName("ProxyAllocation")
@Expose
private ProxyAllocation [] ProxyAllocation;
/**
* VPC ID
*/
@SerializedName("UniqVpcId")
@Expose
private String UniqVpcId;
/**
* VPC subnet ID
*/
@SerializedName("UniqSubnetId")
@Expose
private String UniqSubnetId;
/**
* Whether to enable the connection pool. Valid values:
*/
@SerializedName("ConnectionPool")
@Expose
private Boolean ConnectionPool;
/**
* Description
*/
@SerializedName("Desc")
@Expose
private String Desc;
/**
* IP address
*/
@SerializedName("Vip")
@Expose
private String Vip;
/**
* Port
*/
@SerializedName("VPort")
@Expose
private Long VPort;
/**
* Security group
*/
@SerializedName("SecurityGroup")
@Expose
private String [] SecurityGroup;
/**
* Connection pool type, which will take effect only when `ConnectionPool` is `true`. Valid values: `transaction` (transaction-level), `connection` (session-level).
*/
@SerializedName("ConnectionPoolType")
@Expose
private String ConnectionPoolType;
/**
* Get Proxy group ID
* @return ProxyGroupId Proxy group ID
*/
public String getProxyGroupId() {
return this.ProxyGroupId;
}
/**
* Set Proxy group ID
* @param ProxyGroupId Proxy group ID
*/
public void setProxyGroupId(String ProxyGroupId) {
this.ProxyGroupId = ProxyGroupId;
}
/**
* Get Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`.
* @return WeightMode Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`.
*/
public String getWeightMode() {
return this.WeightMode;
}
/**
* Set Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`.
* @param WeightMode Assignment mode of weights. Valid values: `system` (auto-assigned), `custom`.
*/
public void setWeightMode(String WeightMode) {
this.WeightMode = WeightMode;
}
/**
* Get Whether to remove delayed read-only instances from the proxy group. Valid values: `true`, `false`.
* @return IsKickOut Whether to remove delayed read-only instances from the proxy group. Valid values: `true`, `false`.
*/
public Boolean getIsKickOut() {
return this.IsKickOut;
}
/**
* Set Whether to remove delayed read-only instances from the proxy group. Valid values: `true`, `false`.
* @param IsKickOut Whether to remove delayed read-only instances from the proxy group. Valid values: `true`, `false`.
*/
public void setIsKickOut(Boolean IsKickOut) {
this.IsKickOut = IsKickOut;
}
/**
* Get Least read-only instances. Minimum value: `0`
* @return MinCount Least read-only instances. Minimum value: `0`
*/
public Long getMinCount() {
return this.MinCount;
}
/**
* Set Least read-only instances. Minimum value: `0`
* @param MinCount Least read-only instances. Minimum value: `0`
*/
public void setMinCount(Long MinCount) {
this.MinCount = MinCount;
}
/**
* Get The delay threshold. Minimum value: `0`
* @return MaxDelay The delay threshold. Minimum value: `0`
*/
public Long getMaxDelay() {
return this.MaxDelay;
}
/**
* Set The delay threshold. Minimum value: `0`
* @param MaxDelay The delay threshold. Minimum value: `0`
*/
public void setMaxDelay(Long MaxDelay) {
this.MaxDelay = MaxDelay;
}
/**
* Get Whether to enable failover. Valid values: `true`, `false`.
* @return FailOver Whether to enable failover. Valid values: `true`, `false`.
*/
public Boolean getFailOver() {
return this.FailOver;
}
/**
* Set Whether to enable failover. Valid values: `true`, `false`.
* @param FailOver Whether to enable failover. Valid values: `true`, `false`.
*/
public void setFailOver(Boolean FailOver) {
this.FailOver = FailOver;
}
/**
* Get Whether to automatically add newly created read-only instances. Valid values: `true`, `false`.
* @return AutoAddRo Whether to automatically add newly created read-only instances. Valid values: `true`, `false`.
*/
public Boolean getAutoAddRo() {
return this.AutoAddRo;
}
/**
* Set Whether to automatically add newly created read-only instances. Valid values: `true`, `false`.
* @param AutoAddRo Whether to automatically add newly created read-only instances. Valid values: `true`, `false`.
*/
public void setAutoAddRo(Boolean AutoAddRo) {
this.AutoAddRo = AutoAddRo;
}
/**
* Get Whether it is read-only. Valid values: `true`, `false`.
* @return ReadOnly Whether it is read-only. Valid values: `true`, `false`.
*/
public Boolean getReadOnly() {
return this.ReadOnly;
}
/**
* Set Whether it is read-only. Valid values: `true`, `false`.
* @param ReadOnly Whether it is read-only. Valid values: `true`, `false`.
*/
public void setReadOnly(Boolean ReadOnly) {
this.ReadOnly = ReadOnly;
}
/**
* Get Whether to enable transaction splitting. Valid values: `true`, `false`.
* @return TransSplit Whether to enable transaction splitting. Valid values: `true`, `false`.
*/
public Boolean getTransSplit() {
return this.TransSplit;
}
/**
* Set Whether to enable transaction splitting. Valid values: `true`, `false`.
* @param TransSplit Whether to enable transaction splitting. Valid values: `true`, `false`.
*/
public void setTransSplit(Boolean TransSplit) {
this.TransSplit = TransSplit;
}
/**
* Get Assignment of read/write weights
* @return ProxyAllocation Assignment of read/write weights
*/
public ProxyAllocation [] getProxyAllocation() {
return this.ProxyAllocation;
}
/**
* Set Assignment of read/write weights
* @param ProxyAllocation Assignment of read/write weights
*/
public void setProxyAllocation(ProxyAllocation [] ProxyAllocation) {
this.ProxyAllocation = ProxyAllocation;
}
/**
* Get VPC ID
* @return UniqVpcId VPC ID
*/
public String getUniqVpcId() {
return this.UniqVpcId;
}
/**
* Set VPC ID
* @param UniqVpcId VPC ID
*/
public void setUniqVpcId(String UniqVpcId) {
this.UniqVpcId = UniqVpcId;
}
/**
* Get VPC subnet ID
* @return UniqSubnetId VPC subnet ID
*/
public String getUniqSubnetId() {
return this.UniqSubnetId;
}
/**
* Set VPC subnet ID
* @param UniqSubnetId VPC subnet ID
*/
public void setUniqSubnetId(String UniqSubnetId) {
this.UniqSubnetId = UniqSubnetId;
}
/**
* Get Whether to enable the connection pool. Valid values:
* @return ConnectionPool Whether to enable the connection pool. Valid values:
*/
public Boolean getConnectionPool() {
return this.ConnectionPool;
}
/**
* Set Whether to enable the connection pool. Valid values:
* @param ConnectionPool Whether to enable the connection pool. Valid values:
*/
public void setConnectionPool(Boolean ConnectionPool) {
this.ConnectionPool = ConnectionPool;
}
/**
* Get Description
* @return Desc Description
*/
public String getDesc() {
return this.Desc;
}
/**
* Set Description
* @param Desc Description
*/
public void setDesc(String Desc) {
this.Desc = Desc;
}
/**
* Get IP address
* @return Vip IP address
*/
public String getVip() {
return this.Vip;
}
/**
* Set IP address
* @param Vip IP address
*/
public void setVip(String Vip) {
this.Vip = Vip;
}
/**
* Get Port
* @return VPort Port
*/
public Long getVPort() {
return this.VPort;
}
/**
* Set Port
* @param VPort Port
*/
public void setVPort(Long VPort) {
this.VPort = VPort;
}
/**
* Get Security group
* @return SecurityGroup Security group
*/
public String [] getSecurityGroup() {
return this.SecurityGroup;
}
/**
* Set Security group
* @param SecurityGroup Security group
*/
public void setSecurityGroup(String [] SecurityGroup) {
this.SecurityGroup = SecurityGroup;
}
/**
* Get Connection pool type, which will take effect only when `ConnectionPool` is `true`. Valid values: `transaction` (transaction-level), `connection` (session-level).
* @return ConnectionPoolType Connection pool type, which will take effect only when `ConnectionPool` is `true`. Valid values: `transaction` (transaction-level), `connection` (session-level).
*/
public String getConnectionPoolType() {
return this.ConnectionPoolType;
}
/**
* Set Connection pool type, which will take effect only when `ConnectionPool` is `true`. Valid values: `transaction` (transaction-level), `connection` (session-level).
* @param ConnectionPoolType Connection pool type, which will take effect only when `ConnectionPool` is `true`. Valid values: `transaction` (transaction-level), `connection` (session-level).
*/
public void setConnectionPoolType(String ConnectionPoolType) {
this.ConnectionPoolType = ConnectionPoolType;
}
public CreateCdbProxyAddressRequest() {
}
/**
* 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 CreateCdbProxyAddressRequest(CreateCdbProxyAddressRequest source) {
if (source.ProxyGroupId != null) {
this.ProxyGroupId = new String(source.ProxyGroupId);
}
if (source.WeightMode != null) {
this.WeightMode = new String(source.WeightMode);
}
if (source.IsKickOut != null) {
this.IsKickOut = new Boolean(source.IsKickOut);
}
if (source.MinCount != null) {
this.MinCount = new Long(source.MinCount);
}
if (source.MaxDelay != null) {
this.MaxDelay = new Long(source.MaxDelay);
}
if (source.FailOver != null) {
this.FailOver = new Boolean(source.FailOver);
}
if (source.AutoAddRo != null) {
this.AutoAddRo = new Boolean(source.AutoAddRo);
}
if (source.ReadOnly != null) {
this.ReadOnly = new Boolean(source.ReadOnly);
}
if (source.TransSplit != null) {
this.TransSplit = new Boolean(source.TransSplit);
}
if (source.ProxyAllocation != null) {
this.ProxyAllocation = new ProxyAllocation[source.ProxyAllocation.length];
for (int i = 0; i < source.ProxyAllocation.length; i++) {
this.ProxyAllocation[i] = new ProxyAllocation(source.ProxyAllocation[i]);
}
}
if (source.UniqVpcId != null) {
this.UniqVpcId = new String(source.UniqVpcId);
}
if (source.UniqSubnetId != null) {
this.UniqSubnetId = new String(source.UniqSubnetId);
}
if (source.ConnectionPool != null) {
this.ConnectionPool = new Boolean(source.ConnectionPool);
}
if (source.Desc != null) {
this.Desc = new String(source.Desc);
}
if (source.Vip != null) {
this.Vip = new String(source.Vip);
}
if (source.VPort != null) {
this.VPort = new Long(source.VPort);
}
if (source.SecurityGroup != null) {
this.SecurityGroup = new String[source.SecurityGroup.length];
for (int i = 0; i < source.SecurityGroup.length; i++) {
this.SecurityGroup[i] = new String(source.SecurityGroup[i]);
}
}
if (source.ConnectionPoolType != null) {
this.ConnectionPoolType = new String(source.ConnectionPoolType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ProxyGroupId", this.ProxyGroupId);
this.setParamSimple(map, prefix + "WeightMode", this.WeightMode);
this.setParamSimple(map, prefix + "IsKickOut", this.IsKickOut);
this.setParamSimple(map, prefix + "MinCount", this.MinCount);
this.setParamSimple(map, prefix + "MaxDelay", this.MaxDelay);
this.setParamSimple(map, prefix + "FailOver", this.FailOver);
this.setParamSimple(map, prefix + "AutoAddRo", this.AutoAddRo);
this.setParamSimple(map, prefix + "ReadOnly", this.ReadOnly);
this.setParamSimple(map, prefix + "TransSplit", this.TransSplit);
this.setParamArrayObj(map, prefix + "ProxyAllocation.", this.ProxyAllocation);
this.setParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId);
this.setParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
this.setParamSimple(map, prefix + "ConnectionPool", this.ConnectionPool);
this.setParamSimple(map, prefix + "Desc", this.Desc);
this.setParamSimple(map, prefix + "Vip", this.Vip);
this.setParamSimple(map, prefix + "VPort", this.VPort);
this.setParamArraySimple(map, prefix + "SecurityGroup.", this.SecurityGroup);
this.setParamSimple(map, prefix + "ConnectionPoolType", this.ConnectionPoolType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy