
com.tencentcloudapi.cdb.v20170320.models.ModifyCDBProxyVipVPortRequest 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 ModifyCDBProxyVipVPortRequest extends AbstractModel{
/**
* Proxy group ID
*/
@SerializedName("ProxyGroupId")
@Expose
private String ProxyGroupId;
/**
* VPC ID
*/
@SerializedName("UniqVpcId")
@Expose
private String UniqVpcId;
/**
* VPC subnet ID
*/
@SerializedName("UniqSubnetId")
@Expose
private String UniqSubnetId;
/**
* New IP
*/
@SerializedName("DstIp")
@Expose
private String DstIp;
/**
* New port
*/
@SerializedName("DstPort")
@Expose
private Long DstPort;
/**
* Valid hours of the old IP
*/
@SerializedName("ReleaseDuration")
@Expose
private Long ReleaseDuration;
/**
* 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 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 New IP
* @return DstIp New IP
*/
public String getDstIp() {
return this.DstIp;
}
/**
* Set New IP
* @param DstIp New IP
*/
public void setDstIp(String DstIp) {
this.DstIp = DstIp;
}
/**
* Get New port
* @return DstPort New port
*/
public Long getDstPort() {
return this.DstPort;
}
/**
* Set New port
* @param DstPort New port
*/
public void setDstPort(Long DstPort) {
this.DstPort = DstPort;
}
/**
* Get Valid hours of the old IP
* @return ReleaseDuration Valid hours of the old IP
*/
public Long getReleaseDuration() {
return this.ReleaseDuration;
}
/**
* Set Valid hours of the old IP
* @param ReleaseDuration Valid hours of the old IP
*/
public void setReleaseDuration(Long ReleaseDuration) {
this.ReleaseDuration = ReleaseDuration;
}
public ModifyCDBProxyVipVPortRequest() {
}
/**
* 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 ModifyCDBProxyVipVPortRequest(ModifyCDBProxyVipVPortRequest source) {
if (source.ProxyGroupId != null) {
this.ProxyGroupId = new String(source.ProxyGroupId);
}
if (source.UniqVpcId != null) {
this.UniqVpcId = new String(source.UniqVpcId);
}
if (source.UniqSubnetId != null) {
this.UniqSubnetId = new String(source.UniqSubnetId);
}
if (source.DstIp != null) {
this.DstIp = new String(source.DstIp);
}
if (source.DstPort != null) {
this.DstPort = new Long(source.DstPort);
}
if (source.ReleaseDuration != null) {
this.ReleaseDuration = new Long(source.ReleaseDuration);
}
}
/**
* 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 + "UniqVpcId", this.UniqVpcId);
this.setParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
this.setParamSimple(map, prefix + "DstIp", this.DstIp);
this.setParamSimple(map, prefix + "DstPort", this.DstPort);
this.setParamSimple(map, prefix + "ReleaseDuration", this.ReleaseDuration);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy