com.tencentcloudapi.vpc.v20170312.models.CreateNatGatewayRequest 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.vpc.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateNatGatewayRequest extends AbstractModel{
/**
* NAT gateway name
*/
@SerializedName("NatGatewayName")
@Expose
private String NatGatewayName;
/**
* The ID of the VPC instance. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* The maximum outbound bandwidth of the NAT gateway (unit: Mbps). Supported parameter values: `20, 50, 100, 200, 500, 1000, 2000, 5000`. Default: `100Mbps`.
*/
@SerializedName("InternetMaxBandwidthOut")
@Expose
private Long InternetMaxBandwidthOut;
/**
* The concurrent connection cap of the NAT gateway. Supported parameter values: `1000000, 3000000, 10000000`. The default value is `100000`.
*/
@SerializedName("MaxConcurrentConnection")
@Expose
private Long MaxConcurrentConnection;
/**
* The number of EIPs that needs to be applied for. The system will create N number of EIPs according to your requirements. Either AddressCount or PublicAddresses must be passed in.
*/
@SerializedName("AddressCount")
@Expose
private Long AddressCount;
/**
* The EIP array bound to the NAT gateway. Either AddressCount or PublicAddresses must be passed in.
*/
@SerializedName("PublicIpAddresses")
@Expose
private String [] PublicIpAddresses;
/**
* The availability zone, such as `ap-guangzhou-1`.
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* Subnet of the NAT gateway
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* Get NAT gateway name
* @return NatGatewayName NAT gateway name
*/
public String getNatGatewayName() {
return this.NatGatewayName;
}
/**
* Set NAT gateway name
* @param NatGatewayName NAT gateway name
*/
public void setNatGatewayName(String NatGatewayName) {
this.NatGatewayName = NatGatewayName;
}
/**
* Get The ID of the VPC instance. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
* @return VpcId The ID of the VPC instance. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set The ID of the VPC instance. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
* @param VpcId The ID of the VPC instance. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get The maximum outbound bandwidth of the NAT gateway (unit: Mbps). Supported parameter values: `20, 50, 100, 200, 500, 1000, 2000, 5000`. Default: `100Mbps`.
* @return InternetMaxBandwidthOut The maximum outbound bandwidth of the NAT gateway (unit: Mbps). Supported parameter values: `20, 50, 100, 200, 500, 1000, 2000, 5000`. Default: `100Mbps`.
*/
public Long getInternetMaxBandwidthOut() {
return this.InternetMaxBandwidthOut;
}
/**
* Set The maximum outbound bandwidth of the NAT gateway (unit: Mbps). Supported parameter values: `20, 50, 100, 200, 500, 1000, 2000, 5000`. Default: `100Mbps`.
* @param InternetMaxBandwidthOut The maximum outbound bandwidth of the NAT gateway (unit: Mbps). Supported parameter values: `20, 50, 100, 200, 500, 1000, 2000, 5000`. Default: `100Mbps`.
*/
public void setInternetMaxBandwidthOut(Long InternetMaxBandwidthOut) {
this.InternetMaxBandwidthOut = InternetMaxBandwidthOut;
}
/**
* Get The concurrent connection cap of the NAT gateway. Supported parameter values: `1000000, 3000000, 10000000`. The default value is `100000`.
* @return MaxConcurrentConnection The concurrent connection cap of the NAT gateway. Supported parameter values: `1000000, 3000000, 10000000`. The default value is `100000`.
*/
public Long getMaxConcurrentConnection() {
return this.MaxConcurrentConnection;
}
/**
* Set The concurrent connection cap of the NAT gateway. Supported parameter values: `1000000, 3000000, 10000000`. The default value is `100000`.
* @param MaxConcurrentConnection The concurrent connection cap of the NAT gateway. Supported parameter values: `1000000, 3000000, 10000000`. The default value is `100000`.
*/
public void setMaxConcurrentConnection(Long MaxConcurrentConnection) {
this.MaxConcurrentConnection = MaxConcurrentConnection;
}
/**
* Get The number of EIPs that needs to be applied for. The system will create N number of EIPs according to your requirements. Either AddressCount or PublicAddresses must be passed in.
* @return AddressCount The number of EIPs that needs to be applied for. The system will create N number of EIPs according to your requirements. Either AddressCount or PublicAddresses must be passed in.
*/
public Long getAddressCount() {
return this.AddressCount;
}
/**
* Set The number of EIPs that needs to be applied for. The system will create N number of EIPs according to your requirements. Either AddressCount or PublicAddresses must be passed in.
* @param AddressCount The number of EIPs that needs to be applied for. The system will create N number of EIPs according to your requirements. Either AddressCount or PublicAddresses must be passed in.
*/
public void setAddressCount(Long AddressCount) {
this.AddressCount = AddressCount;
}
/**
* Get The EIP array bound to the NAT gateway. Either AddressCount or PublicAddresses must be passed in.
* @return PublicIpAddresses The EIP array bound to the NAT gateway. Either AddressCount or PublicAddresses must be passed in.
*/
public String [] getPublicIpAddresses() {
return this.PublicIpAddresses;
}
/**
* Set The EIP array bound to the NAT gateway. Either AddressCount or PublicAddresses must be passed in.
* @param PublicIpAddresses The EIP array bound to the NAT gateway. Either AddressCount or PublicAddresses must be passed in.
*/
public void setPublicIpAddresses(String [] PublicIpAddresses) {
this.PublicIpAddresses = PublicIpAddresses;
}
/**
* Get The availability zone, such as `ap-guangzhou-1`.
* @return Zone The availability zone, such as `ap-guangzhou-1`.
*/
public String getZone() {
return this.Zone;
}
/**
* Set The availability zone, such as `ap-guangzhou-1`.
* @param Zone The availability zone, such as `ap-guangzhou-1`.
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
* @return Tags Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
* @param Tags Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* Get Subnet of the NAT gateway
* @return SubnetId Subnet of the NAT gateway
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set Subnet of the NAT gateway
* @param SubnetId Subnet of the NAT gateway
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
public CreateNatGatewayRequest() {
}
/**
* 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 CreateNatGatewayRequest(CreateNatGatewayRequest source) {
if (source.NatGatewayName != null) {
this.NatGatewayName = new String(source.NatGatewayName);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.InternetMaxBandwidthOut != null) {
this.InternetMaxBandwidthOut = new Long(source.InternetMaxBandwidthOut);
}
if (source.MaxConcurrentConnection != null) {
this.MaxConcurrentConnection = new Long(source.MaxConcurrentConnection);
}
if (source.AddressCount != null) {
this.AddressCount = new Long(source.AddressCount);
}
if (source.PublicIpAddresses != null) {
this.PublicIpAddresses = new String[source.PublicIpAddresses.length];
for (int i = 0; i < source.PublicIpAddresses.length; i++) {
this.PublicIpAddresses[i] = new String(source.PublicIpAddresses[i]);
}
}
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "NatGatewayName", this.NatGatewayName);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
this.setParamSimple(map, prefix + "MaxConcurrentConnection", this.MaxConcurrentConnection);
this.setParamSimple(map, prefix + "AddressCount", this.AddressCount);
this.setParamArraySimple(map, prefix + "PublicIpAddresses.", this.PublicIpAddresses);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy