com.tencentcloudapi.cdb.v20170320.models.ModifyDBInstanceVipVportRequest 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyDBInstanceVipVportRequest extends AbstractModel{
/**
* Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters.
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Destination IP. Either this parameter or `DstPort` must be passed in.
*/
@SerializedName("DstIp")
@Expose
private String DstIp;
/**
* Destination port number. Value range: [1024-65535]. Either this parameter or `DstIp` must be passed in.
*/
@SerializedName("DstPort")
@Expose
private Long DstPort;
/**
* Unified VPC ID
*/
@SerializedName("UniqVpcId")
@Expose
private String UniqVpcId;
/**
* Unified subnet ID.
*/
@SerializedName("UniqSubnetId")
@Expose
private String UniqSubnetId;
/**
* Repossession duration in hours for old IP in the original network when changing from the basic network to VPC or changing the VPC subnet. Value range: 0-168 hours. Default value: 24 hours.
*/
@SerializedName("ReleaseDuration")
@Expose
private Long ReleaseDuration;
/**
* Get Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters.
* @return InstanceId Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters.
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters.
* @param InstanceId Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) to query the ID, whose value is the `InstanceId` value in output parameters.
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Destination IP. Either this parameter or `DstPort` must be passed in.
* @return DstIp Destination IP. Either this parameter or `DstPort` must be passed in.
*/
public String getDstIp() {
return this.DstIp;
}
/**
* Set Destination IP. Either this parameter or `DstPort` must be passed in.
* @param DstIp Destination IP. Either this parameter or `DstPort` must be passed in.
*/
public void setDstIp(String DstIp) {
this.DstIp = DstIp;
}
/**
* Get Destination port number. Value range: [1024-65535]. Either this parameter or `DstIp` must be passed in.
* @return DstPort Destination port number. Value range: [1024-65535]. Either this parameter or `DstIp` must be passed in.
*/
public Long getDstPort() {
return this.DstPort;
}
/**
* Set Destination port number. Value range: [1024-65535]. Either this parameter or `DstIp` must be passed in.
* @param DstPort Destination port number. Value range: [1024-65535]. Either this parameter or `DstIp` must be passed in.
*/
public void setDstPort(Long DstPort) {
this.DstPort = DstPort;
}
/**
* Get Unified VPC ID
* @return UniqVpcId Unified VPC ID
*/
public String getUniqVpcId() {
return this.UniqVpcId;
}
/**
* Set Unified VPC ID
* @param UniqVpcId Unified VPC ID
*/
public void setUniqVpcId(String UniqVpcId) {
this.UniqVpcId = UniqVpcId;
}
/**
* Get Unified subnet ID.
* @return UniqSubnetId Unified subnet ID.
*/
public String getUniqSubnetId() {
return this.UniqSubnetId;
}
/**
* Set Unified subnet ID.
* @param UniqSubnetId Unified subnet ID.
*/
public void setUniqSubnetId(String UniqSubnetId) {
this.UniqSubnetId = UniqSubnetId;
}
/**
* Get Repossession duration in hours for old IP in the original network when changing from the basic network to VPC or changing the VPC subnet. Value range: 0-168 hours. Default value: 24 hours.
* @return ReleaseDuration Repossession duration in hours for old IP in the original network when changing from the basic network to VPC or changing the VPC subnet. Value range: 0-168 hours. Default value: 24 hours.
*/
public Long getReleaseDuration() {
return this.ReleaseDuration;
}
/**
* Set Repossession duration in hours for old IP in the original network when changing from the basic network to VPC or changing the VPC subnet. Value range: 0-168 hours. Default value: 24 hours.
* @param ReleaseDuration Repossession duration in hours for old IP in the original network when changing from the basic network to VPC or changing the VPC subnet. Value range: 0-168 hours. Default value: 24 hours.
*/
public void setReleaseDuration(Long ReleaseDuration) {
this.ReleaseDuration = ReleaseDuration;
}
public ModifyDBInstanceVipVportRequest() {
}
/**
* 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 ModifyDBInstanceVipVportRequest(ModifyDBInstanceVipVportRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.DstIp != null) {
this.DstIp = new String(source.DstIp);
}
if (source.DstPort != null) {
this.DstPort = new Long(source.DstPort);
}
if (source.UniqVpcId != null) {
this.UniqVpcId = new String(source.UniqVpcId);
}
if (source.UniqSubnetId != null) {
this.UniqSubnetId = new String(source.UniqSubnetId);
}
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 + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "DstIp", this.DstIp);
this.setParamSimple(map, prefix + "DstPort", this.DstPort);
this.setParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId);
this.setParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
this.setParamSimple(map, prefix + "ReleaseDuration", this.ReleaseDuration);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy