![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.vpc.v20170312.models.AllocateAddressesRequest 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.tencentcloudapi.common.SSEResponseModel;
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, the bandwidth cap range is determined by the EIP billing mode.
- `BANDWIDTH_PACKAGE`: 1 Mbps to 2000 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 the bandwidth cap 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;
/**
* EIP type. Default value: EIP.
- For beta users of AIA, the value can 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 supported only in partial regions.
- For beta users of dedicated IP, the value can be:
- `HighQualityEIP`: Dedicated IP
Note that dedicated IPs are only available in partial regions.
- For beta users of Anti-DDoS IP, the value can be:
- `AntiDDoSEIP`: Anti-DDoS EIP
Note that Anti-DDoS IPs are only available in partial 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;
/**
* Network egress. It defaults to `center_egress1`.
*/
@SerializedName("Egress")
@Expose
private String Egress;
/**
* Anti-DDoS service package ID. This is required when you want to request an Anti-DDoS IP.
*/
@SerializedName("AntiDDoSPackageId")
@Expose
private String AntiDDoSPackageId;
/**
* A string used to ensure the idempotency of the request. Generate a value based on your client. This can ensure that the value is unique for different requests. It only supports ASCII characters and can contain up to 64 characters.
*/
@SerializedName("ClientToken")
@Expose
private String ClientToken;
/**
* 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, the bandwidth cap range is determined by the EIP billing mode.
- `BANDWIDTH_PACKAGE`: 1 Mbps to 2000 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 the bandwidth cap 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, the bandwidth cap range is determined by the EIP billing mode.
- `BANDWIDTH_PACKAGE`: 1 Mbps to 2000 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 the bandwidth cap 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, the bandwidth cap range is determined by the EIP billing mode.
- `BANDWIDTH_PACKAGE`: 1 Mbps to 2000 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 the bandwidth cap 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, the bandwidth cap range is determined by the EIP billing mode.
- `BANDWIDTH_PACKAGE`: 1 Mbps to 2000 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 the bandwidth cap 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 EIP type. Default value: EIP.
- For beta users of AIA, the value can 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 supported only in partial regions.
- For beta users of dedicated IP, the value can be:
- `HighQualityEIP`: Dedicated IP
Note that dedicated IPs are only available in partial regions.
- For beta users of Anti-DDoS IP, the value can be:
- `AntiDDoSEIP`: Anti-DDoS EIP
Note that Anti-DDoS IPs are only available in partial regions.
* @return AddressType EIP type. Default value: EIP.
- For beta users of AIA, the value can 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 supported only in partial regions.
- For beta users of dedicated IP, the value can be:
- `HighQualityEIP`: Dedicated IP
Note that dedicated IPs are only available in partial regions.
- For beta users of Anti-DDoS IP, the value can be:
- `AntiDDoSEIP`: Anti-DDoS EIP
Note that Anti-DDoS IPs are only available in partial regions.
*/
public String getAddressType() {
return this.AddressType;
}
/**
* Set EIP type. Default value: EIP.
- For beta users of AIA, the value can 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 supported only in partial regions.
- For beta users of dedicated IP, the value can be:
- `HighQualityEIP`: Dedicated IP
Note that dedicated IPs are only available in partial regions.
- For beta users of Anti-DDoS IP, the value can be:
- `AntiDDoSEIP`: Anti-DDoS EIP
Note that Anti-DDoS IPs are only available in partial regions.
* @param AddressType EIP type. Default value: EIP.
- For beta users of AIA, the value can 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 supported only in partial regions.
- For beta users of dedicated IP, the value can be:
- `HighQualityEIP`: Dedicated IP
Note that dedicated IPs are only available in partial regions.
- For beta users of Anti-DDoS IP, the value can be:
- `AntiDDoSEIP`: Anti-DDoS EIP
Note that Anti-DDoS IPs are only available in partial 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;
}
/**
* Get Network egress. It defaults to `center_egress1`.
* @return Egress Network egress. It defaults to `center_egress1`.
*/
public String getEgress() {
return this.Egress;
}
/**
* Set Network egress. It defaults to `center_egress1`.
* @param Egress Network egress. It defaults to `center_egress1`.
*/
public void setEgress(String Egress) {
this.Egress = Egress;
}
/**
* Get Anti-DDoS service package ID. This is required when you want to request an Anti-DDoS IP.
* @return AntiDDoSPackageId Anti-DDoS service package ID. This is required when you want to request an Anti-DDoS IP.
*/
public String getAntiDDoSPackageId() {
return this.AntiDDoSPackageId;
}
/**
* Set Anti-DDoS service package ID. This is required when you want to request an Anti-DDoS IP.
* @param AntiDDoSPackageId Anti-DDoS service package ID. This is required when you want to request an Anti-DDoS IP.
*/
public void setAntiDDoSPackageId(String AntiDDoSPackageId) {
this.AntiDDoSPackageId = AntiDDoSPackageId;
}
/**
* Get A string used to ensure the idempotency of the request. Generate a value based on your client. This can ensure that the value is unique for different requests. It only supports ASCII characters and can contain up to 64 characters.
* @return ClientToken A string used to ensure the idempotency of the request. Generate a value based on your client. This can ensure that the value is unique for different requests. It only supports ASCII characters and can contain up to 64 characters.
*/
public String getClientToken() {
return this.ClientToken;
}
/**
* Set A string used to ensure the idempotency of the request. Generate a value based on your client. This can ensure that the value is unique for different requests. It only supports ASCII characters and can contain up to 64 characters.
* @param ClientToken A string used to ensure the idempotency of the request. Generate a value based on your client. This can ensure that the value is unique for different requests. It only supports ASCII characters and can contain up to 64 characters.
*/
public void setClientToken(String ClientToken) {
this.ClientToken = ClientToken;
}
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);
}
if (source.Egress != null) {
this.Egress = new String(source.Egress);
}
if (source.AntiDDoSPackageId != null) {
this.AntiDDoSPackageId = new String(source.AntiDDoSPackageId);
}
if (source.ClientToken != null) {
this.ClientToken = new String(source.ClientToken);
}
}
/**
* 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);
this.setParamSimple(map, prefix + "Egress", this.Egress);
this.setParamSimple(map, prefix + "AntiDDoSPackageId", this.AntiDDoSPackageId);
this.setParamSimple(map, prefix + "ClientToken", this.ClientToken);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy