public static final class AllocateEipAddressProRequest.Builder extends Object
public AllocateEipAddressProRequest.Builder autoPay(Boolean autoPay)
* **false**: Automatic payment is disabled. After an order is generated, you must go to the Order Center to complete the payment. * **true**: Automatic payment is enabled. After an order is generated, the payment is automatically completed. This parameter is required if **InstanceChargeType** is set to **PrePaid**. This parameter is optional if **InstanceChargeType** is set to **PostPaid**.
public AllocateEipAddressProRequest.Builder bandwidth(String bandwidth)
* When **InstanceChargeType** is set to **PostPaid** and **InternetChargeType** is set to **PayByBandwidth**, valid values for **Bandwidth** are **1** to **500**. * When **InstanceChargeType** is set to **PostPaid** and **InternetChargeType** is set to **PayByTraffic**, valid values for **Bandwidth** are **1** to **200**. * When **InstanceChargeType** is set to **PrePaid**, valid values for **Bandwidth** are **1** to **1000**. Default value: **5** Mbit /s.
public AllocateEipAddressProRequest.Builder clientToken(String clientToken)
You can use the client to generate a token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
public AllocateEipAddressProRequest.Builder ISP(String ISP)
* **BGP** (default): BGP (Multi-ISP) line The BGP (Multi-ISP) line is supported in all regions. * **BGP_PRO**: BGP (Multi-ISP) Pro line The BGP (Multi-ISP) Pro line is supported in the China (Hong Kong), Singapore, Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok) regions. For more information about the BGP (Multi-ISP) line and BGP (Multi-ISP) Pro line, see the "Line types" section of [What is EIP?](~~32321~~) * If you are allowed to use single-ISP bandwidth, you can also choose one of the following values: * **ChinaTelecom** * **ChinaUnicom** * **ChinaMobile** * **ChinaTelecom_L2** * **ChinaUnicom_L2** * **ChinaMobile_L2** * If your services are deployed in China East 1 Finance, this parameter is required and you must set the parameter to **BGP_FinanceCloud**.
public AllocateEipAddressProRequest.Builder instanceChargeType(String instanceChargeType)
* **PrePaid**: subscription * **PostPaid** (default): pay-as-you-go Set the value of **InternetChargeType** to **PayByBandwidth** if **InstanceChargeType** is set to **PrePaid**. Valid values when **InstanceChargeType** is set to **PostPaid**: **PayByBandwidth** or **PayByTraffic**.
public AllocateEipAddressProRequest.Builder instanceId(String instanceId)
Specify **IpAddress** or **InstanceId**. If you leave both parameters empty, the system randomly allocates an EIP.
public AllocateEipAddressProRequest.Builder internetChargeType(String internetChargeType)
* **PayByBandwidth** (default): pay-by-bandwidth. * **PayByTraffic**: pay-by-data-transfer. When **InstanceChargeType** is set to **PrePaid**, you must set **InternetChargeType** to **PayByBandwidth**. When **InstanceChargeType** is set to **PostPaid**, set **InternetChargeType** to **PayByBandwidth** or **PayByTraffic**.
public AllocateEipAddressProRequest.Builder ipAddress(String ipAddress)
Specify **IpAddress** or **InstanceId**. If you leave both parameters empty, the system randomly allocates an EIP.
public AllocateEipAddressProRequest.Builder netmode(String netmode)
public AllocateEipAddressProRequest.Builder ownerAccount(String ownerAccount)
public AllocateEipAddressProRequest.Builder ownerId(Long ownerId)
public AllocateEipAddressProRequest.Builder period(Integer period)
* Valid values when **PricingCycle** is set to **Month**: **1 to 9**.**** * Valid values when **PricingCycle** is set to **Year**: **1 to 3**.**** This parameter is required if **InstanceChargeType** is set to **PrePaid**. Leave this parameter empty if **InstanceChargeType** is set to **PostPaid**.
public AllocateEipAddressProRequest.Builder pricingCycle(String pricingCycle)
* **Month** (default) * **Year** This parameter is required if **InstanceChargeType** is set to **PrePaid**. This parameter is optional if **InstanceChargeType** is set to **PostPaid**.
public AllocateEipAddressProRequest.Builder publicIpAddressPoolId(String publicIpAddressPoolId)
The EIP is allocated from the IP address pool. By default, you cannot use the IP address pool. To use this feature, apply for the privilege in the Quota Center console. For more information, see the "Request a quota increase in the Quota Center console" section of [Manage EIP quotas](~~108213~~).
public AllocateEipAddressProRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the region ID.
public AllocateEipAddressProRequest.Builder resourceGroupId(String resourceGroupId)
public AllocateEipAddressProRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public AllocateEipAddressProRequest.Builder resourceOwnerId(Long resourceOwnerId)
public AllocateEipAddressProRequest.Builder securityProtectionTypes(List<String> securityProtectionTypes)
* If you do not specify this parameter, Anti-DDoS Origin Basic is used. * If you set the parameter to **AntiDDoS_Enhanced**, Anti-DDoS Pro/Premium is used. You can configure Anti-DDoS editions for up to 10 EIPs.
public AllocateEipAddressProRequest build()
Copyright © 2024. All rights reserved.