public static final class AllocateEipAddressRequest.Builder extends Object
public AllocateEipAddressRequest.Builder activityId(Long activityId)
public AllocateEipAddressRequest.Builder autoPay(Boolean autoPay)
* **false** (default): The automatic payment is disabled. If you select this option, you must go to the Order Center to complete the payment after an order is generated. * **true**: The automatic payment is enabled. Payments are automatically complete after an order is generated. If **InstanceChargeType** is set to **PrePaid**, this parameter is required. If **InstanceChargeType** is set to **PostPaid**, this parameter is not required.
public AllocateEipAddressRequest.Builder bandwidth(String bandwidth)
* Valid values when **InstanceChargeType** is set to **PostPaid** and **InternetChargeType** is set to **PayByBandwidth**: **1** to **500**.**** * Valid values when **InstanceChargeType** is set to **PostPaid** and **InternetChargeType** is set to **PayByTraffic**: **1** to **200**.**** * Valid values when **InstanceChargeType** is set to **PrePaid**: **1** to **1000**.**** Default value: **5**. Unit: Mbit/s.
public AllocateEipAddressRequest.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 **client token** can contain only ASCII characters. > 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.
public AllocateEipAddressRequest.Builder description(String description)
The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with `http://` or `https://`. > You cannot specify this parameter if you create a subscription EIP.
public AllocateEipAddressRequest.Builder ISP(String ISP)
* **BGP** (default): BGP (Multi-ISP) All regions support BGP (Multi-ISP) EIPs. * **BGP_PRO**: BGP (Multi-ISP) Pro Only the following regions support BGP (Multi-ISP) Pro lines: China (Hong Kong), Singapore, Japan (Tokyo), Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok). For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, 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 value to **BGP_FinanceCloud**.
public AllocateEipAddressRequest.Builder instanceChargeType(String instanceChargeType)
* **PrePaid**: subscription * **PostPaid** (default): pay-as-you-go If **InstanceChargeType** is set to **PrePaid**, set **InternetChargeType** to **PayByBandwidth**. If **InstanceChargeType** is set to **PostPaid**, set **InternetChargeType** to **PayByBandwidth** or **PayByTraffic**.
public AllocateEipAddressRequest.Builder instanceId(String instanceId)
Specify **IpAddress** or **InstanceId**. If you leave both parameters empty, the system randomly allocates an EIP.
public AllocateEipAddressRequest.Builder internetChargeType(String internetChargeType)
* **PayByBandwidth** (default): pay-by-bandwidth * **PayByTraffic**: pay-by-data-transfer When **InstanceChargeType** is set to **PrePaid**, set **InternetChargeType** to **PayByBandwidth**. When **InstanceChargeType** is set to **PostPaid**, set **InternetChargeType** to **PayByBandwidth** or **PayByTraffic**.
public AllocateEipAddressRequest.Builder ipAddress(String ipAddress)
Specify **IpAddress** or **InstanceId**. If you leave both parameters empty, the system randomly allocates an EIP.
public AllocateEipAddressRequest.Builder name(String 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 (-). > You cannot specify this parameter if you create a subscription EIP.
public AllocateEipAddressRequest.Builder netmode(String netmode)
public AllocateEipAddressRequest.Builder ownerAccount(String ownerAccount)
public AllocateEipAddressRequest.Builder ownerId(Long ownerId)
public AllocateEipAddressRequest.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 **5**.**** This parameter must be specified when **InstanceChargeType** is set to **PrePaid**. This parameter is optional when **InstanceChargeType** is set to **PostPaid**.
public AllocateEipAddressRequest.Builder pricingCycle(String pricingCycle)
* **Month** (default) * **Year** If **InstanceChargeType** is set to **PrePaid**, this parameter is required. If **InstanceChargeType** is set to **PostPaid**, this parameter is not required.
public AllocateEipAddressRequest.Builder publicIpAddressPoolId(String publicIpAddressPoolId)
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](~~108213~~).
public AllocateEipAddressRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the region ID.
public AllocateEipAddressRequest.Builder resourceGroupId(String resourceGroupId)
public AllocateEipAddressRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public AllocateEipAddressRequest.Builder resourceOwnerId(Long resourceOwnerId)
public AllocateEipAddressRequest.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 specify up to 10 editions of Anti-DDoS.
public AllocateEipAddressRequest.Builder zone(String zone)
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](~~429433~~).
public AllocateEipAddressRequest build()
Copyright © 2024. All rights reserved.