
com.tencentcloudapi.vpc.v20170312.models.AllocateAddressesRequest 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.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 AllocateAddressesRequest extends AbstractModel{
/**
* The number of EIPs. Default: 1.
*/
@SerializedName("AddressCount")
@Expose
private Long AddressCount;
/**
* The EIP line type. Default: BGP.
- For a user who has activated the static single-line IP allowlist, possible values are:
- CMCC: China Mobile
- CTCC: China Telecom
- CUCC: China Unicom
Note: Only certain regions support static single-line IP addresses.
*/
@SerializedName("InternetServiceProvider")
@Expose
private String InternetServiceProvider;
/**
* The EIP billing method.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: paid by the [bandwidth package](https://intl.cloud.tencent.com/document/product/684/15255?from_cn_redirect=1)(who must also be bandwidth package beta users)
- BANDWIDTH_POSTPAID_BY_HOUR: billed by hourly bandwidth on a pay-as-you-go basis
- BANDWIDTH_PREPAID_BY_MONTH: monthly bandwidth subscription
- TRAFFIC_POSTPAID_BY_HOUR: billed by hourly traffic on a pay-as-you-go basis
Default value: TRAFFIC_POSTPAID_BY_HOUR
- If you are not a bill-by-IP account beta user, the EIP billing is the same as that for the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
*/
@SerializedName("InternetChargeType")
@Expose
private String InternetChargeType;
/**
* The EIP outbound bandwidth cap, in Mbps.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: 1 Mbps to 1000 Mbps
- BANDWIDTH_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
- BANDWIDTH_PREPAID_BY_MONTH: 1 Mbps to 200 Mbps
- TRAFFIC_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
Default value: 1 Mbps
- If you are not a bill-by-IP account beta user, the EIP outbound bandwidth cap is subject to that of the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
*/
@SerializedName("InternetMaxBandwidthOut")
@Expose
private Long InternetMaxBandwidthOut;
/**
* A required billing parameter for an EIP billed by monthly bandwidth subscription. For EIPs using other billing modes, it can be ignored.
*/
@SerializedName("AddressChargePrepaid")
@Expose
private AddressChargePrepaid AddressChargePrepaid;
/**
* The EIP type. Default: `EIP`.
- For AIA beta users, the value should be:
- `AnycastEIP`: an AIA IP address. For more information, see [Anycast Internet Acceleration](https://intl.cloud.tencent.com/document/product/644?from_cn_redirect=1).
Note: Anycast EIPs are only supported in some of the regions.
- For high-quality IP beta users, the value should be:
- `HighQualityEIP`: high-quality IP
Note: High-quality IPs are only supported in some of the regions.
*/
@SerializedName("AddressType")
@Expose
private String AddressType;
/**
* Anycast publishing region
- Valid for users who have activated AIA. Values:
- ANYCAST_ZONE_GLOBAL: global publishing region
- ANYCAST_ZONE_OVERSEAS: overseas publishing region
- **[Disused]** ANYCAST_ZONE_A: publishing region A (updated to ANYCAST_ZONE_GLOBAL)
- **[Disused]** ANYCAST_ZONE_B: publishing region B (updated to ANYCAST_ZONE_GLOBAL)
Default: ANYCAST_ZONE_OVERSEAS.
*/
@SerializedName("AnycastZone")
@Expose
private String AnycastZone;
/**
* **[Disused]**
Whether the Anycast EIP can be bound to CLB instances.
- Valid for users who have activated the AIA. Values:
- TRUE: the Anycast EIP can be bound to CLB instances.
- FALSE: the Anycast EIP can be bound to CVMs, NAT gateways, and HAVIPs.
Default: FALSE.
*/
@SerializedName("ApplicableForCLB")
@Expose
private Boolean ApplicableForCLB;
/**
* List of tags to be bound.
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* The unique ID of a BGP bandwidth package. If you configure this parameter and set InternetChargeType as BANDWIDTH_PACKAGE, the new EIP is added to this package and billed by the bandwidth package mode.
*/
@SerializedName("BandwidthPackageId")
@Expose
private String BandwidthPackageId;
/**
* EIP name, which is the custom EIP name given by the user when applying for the EIP. Default: not named
*/
@SerializedName("AddressName")
@Expose
private String AddressName;
/**
* Get The number of EIPs. Default: 1.
* @return AddressCount The number of EIPs. Default: 1.
*/
public Long getAddressCount() {
return this.AddressCount;
}
/**
* Set The number of EIPs. Default: 1.
* @param AddressCount The number of EIPs. Default: 1.
*/
public void setAddressCount(Long AddressCount) {
this.AddressCount = AddressCount;
}
/**
* Get The EIP line type. Default: BGP.
- For a user who has activated the static single-line IP allowlist, possible values are:
- CMCC: China Mobile
- CTCC: China Telecom
- CUCC: China Unicom
Note: Only certain regions support static single-line IP addresses.
* @return InternetServiceProvider The EIP line type. Default: BGP.
- For a user who has activated the static single-line IP allowlist, possible values are:
- CMCC: China Mobile
- CTCC: China Telecom
- CUCC: China Unicom
Note: Only certain regions support static single-line IP addresses.
*/
public String getInternetServiceProvider() {
return this.InternetServiceProvider;
}
/**
* Set The EIP line type. Default: BGP.
- For a user who has activated the static single-line IP allowlist, possible values are:
- CMCC: China Mobile
- CTCC: China Telecom
- CUCC: China Unicom
Note: Only certain regions support static single-line IP addresses.
* @param InternetServiceProvider The EIP line type. Default: BGP.
- For a user who has activated the static single-line IP allowlist, possible values are:
- CMCC: China Mobile
- CTCC: China Telecom
- CUCC: China Unicom
Note: Only certain regions support static single-line IP addresses.
*/
public void setInternetServiceProvider(String InternetServiceProvider) {
this.InternetServiceProvider = InternetServiceProvider;
}
/**
* Get The EIP billing method.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: paid by the [bandwidth package](https://intl.cloud.tencent.com/document/product/684/15255?from_cn_redirect=1)(who must also be bandwidth package beta users)
- BANDWIDTH_POSTPAID_BY_HOUR: billed by hourly bandwidth on a pay-as-you-go basis
- BANDWIDTH_PREPAID_BY_MONTH: monthly bandwidth subscription
- TRAFFIC_POSTPAID_BY_HOUR: billed by hourly traffic on a pay-as-you-go basis
Default value: TRAFFIC_POSTPAID_BY_HOUR
- If you are not a bill-by-IP account beta user, the EIP billing is the same as that for the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
* @return InternetChargeType The EIP billing method.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: paid by the [bandwidth package](https://intl.cloud.tencent.com/document/product/684/15255?from_cn_redirect=1)(who must also be bandwidth package beta users)
- BANDWIDTH_POSTPAID_BY_HOUR: billed by hourly bandwidth on a pay-as-you-go basis
- BANDWIDTH_PREPAID_BY_MONTH: monthly bandwidth subscription
- TRAFFIC_POSTPAID_BY_HOUR: billed by hourly traffic on a pay-as-you-go basis
Default value: TRAFFIC_POSTPAID_BY_HOUR
- If you are not a bill-by-IP account beta user, the EIP billing is the same as that for the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
*/
public String getInternetChargeType() {
return this.InternetChargeType;
}
/**
* Set The EIP billing method.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: paid by the [bandwidth package](https://intl.cloud.tencent.com/document/product/684/15255?from_cn_redirect=1)(who must also be bandwidth package beta users)
- BANDWIDTH_POSTPAID_BY_HOUR: billed by hourly bandwidth on a pay-as-you-go basis
- BANDWIDTH_PREPAID_BY_MONTH: monthly bandwidth subscription
- TRAFFIC_POSTPAID_BY_HOUR: billed by hourly traffic on a pay-as-you-go basis
Default value: TRAFFIC_POSTPAID_BY_HOUR
- If you are not a bill-by-IP account beta user, the EIP billing is the same as that for the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
* @param InternetChargeType The EIP billing method.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: paid by the [bandwidth package](https://intl.cloud.tencent.com/document/product/684/15255?from_cn_redirect=1)(who must also be bandwidth package beta users)
- BANDWIDTH_POSTPAID_BY_HOUR: billed by hourly bandwidth on a pay-as-you-go basis
- BANDWIDTH_PREPAID_BY_MONTH: monthly bandwidth subscription
- TRAFFIC_POSTPAID_BY_HOUR: billed by hourly traffic on a pay-as-you-go basis
Default value: TRAFFIC_POSTPAID_BY_HOUR
- If you are not a bill-by-IP account beta user, the EIP billing is the same as that for the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
*/
public void setInternetChargeType(String InternetChargeType) {
this.InternetChargeType = InternetChargeType;
}
/**
* Get The EIP outbound bandwidth cap, in Mbps.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: 1 Mbps to 1000 Mbps
- BANDWIDTH_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
- BANDWIDTH_PREPAID_BY_MONTH: 1 Mbps to 200 Mbps
- TRAFFIC_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
Default value: 1 Mbps
- If you are not a bill-by-IP account beta user, the EIP outbound bandwidth cap is subject to that of the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
* @return InternetMaxBandwidthOut The EIP outbound bandwidth cap, in Mbps.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: 1 Mbps to 1000 Mbps
- BANDWIDTH_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
- BANDWIDTH_PREPAID_BY_MONTH: 1 Mbps to 200 Mbps
- TRAFFIC_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
Default value: 1 Mbps
- If you are not a bill-by-IP account beta user, the EIP outbound bandwidth cap is subject to that of the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
*/
public Long getInternetMaxBandwidthOut() {
return this.InternetMaxBandwidthOut;
}
/**
* Set The EIP outbound bandwidth cap, in Mbps.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: 1 Mbps to 1000 Mbps
- BANDWIDTH_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
- BANDWIDTH_PREPAID_BY_MONTH: 1 Mbps to 200 Mbps
- TRAFFIC_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
Default value: 1 Mbps
- If you are not a bill-by-IP account beta user, the EIP outbound bandwidth cap is subject to that of the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
* @param InternetMaxBandwidthOut The EIP outbound bandwidth cap, in Mbps.
- For bill-by-IP account beta users, valid values:
- BANDWIDTH_PACKAGE: 1 Mbps to 1000 Mbps
- BANDWIDTH_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
- BANDWIDTH_PREPAID_BY_MONTH: 1 Mbps to 200 Mbps
- TRAFFIC_POSTPAID_BY_HOUR: 1 Mbps to 100 Mbps
Default value: 1 Mbps
- If you are not a bill-by-IP account beta user, the EIP outbound bandwidth cap is subject to that of the instance bound to the EIP. Therefore, you do not need to pass in this parameter.
*/
public void setInternetMaxBandwidthOut(Long InternetMaxBandwidthOut) {
this.InternetMaxBandwidthOut = InternetMaxBandwidthOut;
}
/**
* Get A required billing parameter for an EIP billed by monthly bandwidth subscription. For EIPs using other billing modes, it can be ignored.
* @return AddressChargePrepaid A required billing parameter for an EIP billed by monthly bandwidth subscription. For EIPs using other billing modes, it can be ignored.
*/
public AddressChargePrepaid getAddressChargePrepaid() {
return this.AddressChargePrepaid;
}
/**
* Set A required billing parameter for an EIP billed by monthly bandwidth subscription. For EIPs using other billing modes, it can be ignored.
* @param AddressChargePrepaid A required billing parameter for an EIP billed by monthly bandwidth subscription. For EIPs using other billing modes, it can be ignored.
*/
public void setAddressChargePrepaid(AddressChargePrepaid AddressChargePrepaid) {
this.AddressChargePrepaid = AddressChargePrepaid;
}
/**
* Get The EIP type. Default: `EIP`.
- For AIA beta users, the value should be:
- `AnycastEIP`: an AIA IP address. For more information, see [Anycast Internet Acceleration](https://intl.cloud.tencent.com/document/product/644?from_cn_redirect=1).
Note: Anycast EIPs are only supported in some of the regions.
- For high-quality IP beta users, the value should be:
- `HighQualityEIP`: high-quality IP
Note: High-quality IPs are only supported in some of the regions.
* @return AddressType The EIP type. Default: `EIP`.
- For AIA beta users, the value should be:
- `AnycastEIP`: an AIA IP address. For more information, see [Anycast Internet Acceleration](https://intl.cloud.tencent.com/document/product/644?from_cn_redirect=1).
Note: Anycast EIPs are only supported in some of the regions.
- For high-quality IP beta users, the value should be:
- `HighQualityEIP`: high-quality IP
Note: High-quality IPs are only supported in some of the regions.
*/
public String getAddressType() {
return this.AddressType;
}
/**
* Set The EIP type. Default: `EIP`.
- For AIA beta users, the value should be:
- `AnycastEIP`: an AIA IP address. For more information, see [Anycast Internet Acceleration](https://intl.cloud.tencent.com/document/product/644?from_cn_redirect=1).
Note: Anycast EIPs are only supported in some of the regions.
- For high-quality IP beta users, the value should be:
- `HighQualityEIP`: high-quality IP
Note: High-quality IPs are only supported in some of the regions.
* @param AddressType The EIP type. Default: `EIP`.
- For AIA beta users, the value should be:
- `AnycastEIP`: an AIA IP address. For more information, see [Anycast Internet Acceleration](https://intl.cloud.tencent.com/document/product/644?from_cn_redirect=1).
Note: Anycast EIPs are only supported in some of the regions.
- For high-quality IP beta users, the value should be:
- `HighQualityEIP`: high-quality IP
Note: High-quality IPs are only supported in some of the regions.
*/
public void setAddressType(String AddressType) {
this.AddressType = AddressType;
}
/**
* Get Anycast publishing region
- Valid for users who have activated AIA. Values:
- ANYCAST_ZONE_GLOBAL: global publishing region
- ANYCAST_ZONE_OVERSEAS: overseas publishing region
- **[Disused]** ANYCAST_ZONE_A: publishing region A (updated to ANYCAST_ZONE_GLOBAL)
- **[Disused]** ANYCAST_ZONE_B: publishing region B (updated to ANYCAST_ZONE_GLOBAL)
Default: ANYCAST_ZONE_OVERSEAS.
* @return AnycastZone Anycast publishing region
- Valid for users who have activated AIA. Values:
- ANYCAST_ZONE_GLOBAL: global publishing region
- ANYCAST_ZONE_OVERSEAS: overseas publishing region
- **[Disused]** ANYCAST_ZONE_A: publishing region A (updated to ANYCAST_ZONE_GLOBAL)
- **[Disused]** ANYCAST_ZONE_B: publishing region B (updated to ANYCAST_ZONE_GLOBAL)
Default: ANYCAST_ZONE_OVERSEAS.
*/
public String getAnycastZone() {
return this.AnycastZone;
}
/**
* Set Anycast publishing region
- Valid for users who have activated AIA. Values:
- ANYCAST_ZONE_GLOBAL: global publishing region
- ANYCAST_ZONE_OVERSEAS: overseas publishing region
- **[Disused]** ANYCAST_ZONE_A: publishing region A (updated to ANYCAST_ZONE_GLOBAL)
- **[Disused]** ANYCAST_ZONE_B: publishing region B (updated to ANYCAST_ZONE_GLOBAL)
Default: ANYCAST_ZONE_OVERSEAS.
* @param AnycastZone Anycast publishing region
- Valid for users who have activated AIA. Values:
- ANYCAST_ZONE_GLOBAL: global publishing region
- ANYCAST_ZONE_OVERSEAS: overseas publishing region
- **[Disused]** ANYCAST_ZONE_A: publishing region A (updated to ANYCAST_ZONE_GLOBAL)
- **[Disused]** ANYCAST_ZONE_B: publishing region B (updated to ANYCAST_ZONE_GLOBAL)
Default: ANYCAST_ZONE_OVERSEAS.
*/
public void setAnycastZone(String AnycastZone) {
this.AnycastZone = AnycastZone;
}
/**
* Get **[Disused]**
Whether the Anycast EIP can be bound to CLB instances.
- Valid for users who have activated the AIA. Values:
- TRUE: the Anycast EIP can be bound to CLB instances.
- FALSE: the Anycast EIP can be bound to CVMs, NAT gateways, and HAVIPs.
Default: FALSE.
* @return ApplicableForCLB **[Disused]**
Whether the Anycast EIP can be bound to CLB instances.
- Valid for users who have activated the AIA. Values:
- TRUE: the Anycast EIP can be bound to CLB instances.
- FALSE: the Anycast EIP can be bound to CVMs, NAT gateways, and HAVIPs.
Default: FALSE.
*/
public Boolean getApplicableForCLB() {
return this.ApplicableForCLB;
}
/**
* Set **[Disused]**
Whether the Anycast EIP can be bound to CLB instances.
- Valid for users who have activated the AIA. Values:
- TRUE: the Anycast EIP can be bound to CLB instances.
- FALSE: the Anycast EIP can be bound to CVMs, NAT gateways, and HAVIPs.
Default: FALSE.
* @param ApplicableForCLB **[Disused]**
Whether the Anycast EIP can be bound to CLB instances.
- Valid for users who have activated the AIA. Values:
- TRUE: the Anycast EIP can be bound to CLB instances.
- FALSE: the Anycast EIP can be bound to CVMs, NAT gateways, and HAVIPs.
Default: FALSE.
*/
public void setApplicableForCLB(Boolean ApplicableForCLB) {
this.ApplicableForCLB = ApplicableForCLB;
}
/**
* Get List of tags to be bound.
* @return Tags List of tags to be bound.
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set List of tags to be bound.
* @param Tags List of tags to be bound.
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* Get The unique ID of a BGP bandwidth package. If you configure this parameter and set InternetChargeType as BANDWIDTH_PACKAGE, the new EIP is added to this package and billed by the bandwidth package mode.
* @return BandwidthPackageId The unique ID of a BGP bandwidth package. If you configure this parameter and set InternetChargeType as BANDWIDTH_PACKAGE, the new EIP is added to this package and billed by the bandwidth package mode.
*/
public String getBandwidthPackageId() {
return this.BandwidthPackageId;
}
/**
* Set The unique ID of a BGP bandwidth package. If you configure this parameter and set InternetChargeType as BANDWIDTH_PACKAGE, the new EIP is added to this package and billed by the bandwidth package mode.
* @param BandwidthPackageId The unique ID of a BGP bandwidth package. If you configure this parameter and set InternetChargeType as BANDWIDTH_PACKAGE, the new EIP is added to this package and billed by the bandwidth package mode.
*/
public void setBandwidthPackageId(String BandwidthPackageId) {
this.BandwidthPackageId = BandwidthPackageId;
}
/**
* Get EIP name, which is the custom EIP name given by the user when applying for the EIP. Default: not named
* @return AddressName EIP name, which is the custom EIP name given by the user when applying for the EIP. Default: not named
*/
public String getAddressName() {
return this.AddressName;
}
/**
* Set EIP name, which is the custom EIP name given by the user when applying for the EIP. Default: not named
* @param AddressName EIP name, which is the custom EIP name given by the user when applying for the EIP. Default: not named
*/
public void setAddressName(String AddressName) {
this.AddressName = AddressName;
}
public AllocateAddressesRequest() {
}
/**
* 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 AllocateAddressesRequest(AllocateAddressesRequest source) {
if (source.AddressCount != null) {
this.AddressCount = new Long(source.AddressCount);
}
if (source.InternetServiceProvider != null) {
this.InternetServiceProvider = new String(source.InternetServiceProvider);
}
if (source.InternetChargeType != null) {
this.InternetChargeType = new String(source.InternetChargeType);
}
if (source.InternetMaxBandwidthOut != null) {
this.InternetMaxBandwidthOut = new Long(source.InternetMaxBandwidthOut);
}
if (source.AddressChargePrepaid != null) {
this.AddressChargePrepaid = new AddressChargePrepaid(source.AddressChargePrepaid);
}
if (source.AddressType != null) {
this.AddressType = new String(source.AddressType);
}
if (source.AnycastZone != null) {
this.AnycastZone = new String(source.AnycastZone);
}
if (source.ApplicableForCLB != null) {
this.ApplicableForCLB = new Boolean(source.ApplicableForCLB);
}
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.BandwidthPackageId != null) {
this.BandwidthPackageId = new String(source.BandwidthPackageId);
}
if (source.AddressName != null) {
this.AddressName = new String(source.AddressName);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "AddressCount", this.AddressCount);
this.setParamSimple(map, prefix + "InternetServiceProvider", this.InternetServiceProvider);
this.setParamSimple(map, prefix + "InternetChargeType", this.InternetChargeType);
this.setParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
this.setParamObj(map, prefix + "AddressChargePrepaid.", this.AddressChargePrepaid);
this.setParamSimple(map, prefix + "AddressType", this.AddressType);
this.setParamSimple(map, prefix + "AnycastZone", this.AnycastZone);
this.setParamSimple(map, prefix + "ApplicableForCLB", this.ApplicableForCLB);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "BandwidthPackageId", this.BandwidthPackageId);
this.setParamSimple(map, prefix + "AddressName", this.AddressName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy