public class AllocateEipAddressRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Long |
activityId
The promotion code.
|
Boolean |
autoPay
Specifies whether to enable automatic payment.
|
String |
bandwidth
The maximum bandwidth of the EIP.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the EIP.
|
String |
instanceChargeType
The billing method of the EIP.
|
String |
instanceId
The EIP ID.
|
String |
internetChargeType
The metering method of the EIP.
|
String |
ipAddress
The IP address of the EIP that you want to request.
|
String |
ISP
The line type.
|
String |
name
The EIP name.
|
String |
netmode
The network type.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The subscription duration of the EIP.
|
String |
pricingCycle
The billing cycle of the subscription EIP.
|
String |
publicIpAddressPoolId
The ID of the IP address pool.
|
String |
regionId
The ID of the region to which the EIP belongs.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<String> |
securityProtectionTypes
The editions of Anti-DDoS.
|
String |
zone
The zone of the EIP.
|
构造器和说明 |
---|
AllocateEipAddressRequest() |
@NameInMap(value="ActivityId") public Long activityId
The promotion code. This parameter is not required.
example:123456
@NameInMap(value="AutoPay") public Boolean autoPay
Specifies whether to enable automatic payment. Valid values:
If InstanceChargeType is set to PrePaid, this parameter is required. If InstanceChargeType is set to PostPaid, this parameter is not required.
example:false
@NameInMap(value="Bandwidth") public String bandwidth
The maximum bandwidth of the EIP. Unit: Mbit/s.
Default value: 5. Unit: Mbit/s.
example:5
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate a token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.
example:If you do not specify this parameter, the system automatically uses the value of RequestId as the client token. The value of RequestId is different for each API request.
0c593ea1-3bea-11e9-b96b-88e9fe637760
@NameInMap(value="Description") public String description
The description of the EIP.
The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http://
or https://
.
example:You cannot specify this parameter if you create a subscription EIP.
test
@NameInMap(value="ISP") public String ISP
The line type. Valid values:
For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see the "Line types" section of What is EIP?
If you are allowed to use single-ISP bandwidth, you can also choose one of the following values:
If your services are deployed in China East 1 Finance, this parameter is required and you must set the value to BGP_FinanceCloud.
BGP
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the EIP. Valid values:
If InstanceChargeType is set to PrePaid, set InternetChargeType to PayByBandwidth. If InstanceChargeType is set to PostPaid, set InternetChargeType to PayByBandwidth or PayByTraffic.
example:PostPaid
@NameInMap(value="InstanceId") public String instanceId
The EIP ID.
Specify IpAddress or InstanceId. If you leave both parameters empty, the system randomly allocates an EIP.
example:eip-25877c70gddh****
@NameInMap(value="InternetChargeType") public String internetChargeType
The metering method of the EIP. Valid values:
When InstanceChargeType is set to PrePaid, set InternetChargeType to PayByBandwidth.
When InstanceChargeType is set to PostPaid, set InternetChargeType to PayByBandwidth or PayByTraffic.
example:PayByTraffic
@NameInMap(value="IpAddress") public String ipAddress
The IP address of the EIP that you want to request.
Specify IpAddress or InstanceId. If you leave both parameters empty, the system randomly allocates an EIP.
example:192.0.XX.XX
@NameInMap(value="Name") public String name
The EIP name.
The name must be 1 to 128 characters in length and start with a letter, and can contain letters, digits, periods (.), underscores (_), and hyphens (-).
example:You cannot specify this parameter if you create a subscription EIP.
EIP1
@NameInMap(value="Netmode") public String netmode
The network type. Default value: public.
example:public
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The subscription duration of the EIP.
Valid values when PricingCycle is set to Month: 1 to 9.****
Valid values when PricingCycle is set to Year: 1 to 5.****
This parameter must be specified when InstanceChargeType is set to PrePaid. This parameter is optional when InstanceChargeType is set to PostPaid.
example:1
@NameInMap(value="PricingCycle") public String pricingCycle
The billing cycle of the subscription EIP. Valid values:
If InstanceChargeType is set to PrePaid, this parameter is required. If InstanceChargeType is set to PostPaid, this parameter is not required.
example:Month
@NameInMap(value="PublicIpAddressPoolId") public String publicIpAddressPoolId
The ID of the IP address pool.
The EIP is allocated from the IP address pool.
By default, the IP address pool feature is unavailable. To use the IP address pool, apply for the privilege in the Quota Center console. For more information, see the "Request a quota increase in the Quota Center console" section in Manage EIP quotas.
example:pippool-2vc0kxcedhquybdsz****
@NameInMap(value="RegionId") public String regionId
The ID of the region to which the EIP belongs.
You can call the DescribeRegions operation to query the region ID.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
example:rg-acfmxazffggds****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityProtectionTypes") public List<String> securityProtectionTypes
The editions of Anti-DDoS.
You can specify up to 10 editions of Anti-DDoS.
example:AntiDDoS_Enhanced
@NameInMap(value="Zone") public String zone
The zone of the EIP.
When the service type of the IP address pool specified by PublicIpAddressPoolId is CloudBox, the default value is the zone of the IP address pool.
For more information, see ListPublicIpAddressPools.
example:cn-hangzhou-a
public static AllocateEipAddressRequest build(Map<String,?> map) throws Exception
Exception
public AllocateEipAddressRequest setActivityId(Long activityId)
public Long getActivityId()
public AllocateEipAddressRequest setAutoPay(Boolean autoPay)
public Boolean getAutoPay()
public AllocateEipAddressRequest setBandwidth(String bandwidth)
public String getBandwidth()
public AllocateEipAddressRequest setClientToken(String clientToken)
public String getClientToken()
public AllocateEipAddressRequest setDescription(String description)
public String getDescription()
public AllocateEipAddressRequest setISP(String ISP)
public String getISP()
public AllocateEipAddressRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public AllocateEipAddressRequest setInstanceId(String instanceId)
public String getInstanceId()
public AllocateEipAddressRequest setInternetChargeType(String internetChargeType)
public String getInternetChargeType()
public AllocateEipAddressRequest setIpAddress(String ipAddress)
public String getIpAddress()
public AllocateEipAddressRequest setName(String name)
public String getName()
public AllocateEipAddressRequest setNetmode(String netmode)
public String getNetmode()
public AllocateEipAddressRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public AllocateEipAddressRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AllocateEipAddressRequest setPeriod(Integer period)
public Integer getPeriod()
public AllocateEipAddressRequest setPricingCycle(String pricingCycle)
public String getPricingCycle()
public AllocateEipAddressRequest setPublicIpAddressPoolId(String publicIpAddressPoolId)
public String getPublicIpAddressPoolId()
public AllocateEipAddressRequest setRegionId(String regionId)
public String getRegionId()
public AllocateEipAddressRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public AllocateEipAddressRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AllocateEipAddressRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public AllocateEipAddressRequest setSecurityProtectionTypes(List<String> securityProtectionTypes)
public AllocateEipAddressRequest setZone(String zone)
public String getZone()
Copyright © 2024. All rights reserved.