public static final class CreateLoadBalancerRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateLoadBalancerRequest.Builder |
address(String address)
The private IP address of the CLB instance.
|
CreateLoadBalancerRequest.Builder |
addressIPVersion(String addressIPVersion)
The IP version that is used by the CLB instance.
|
CreateLoadBalancerRequest.Builder |
addressType(String addressType)
The network type of the CLB instance.
|
CreateLoadBalancerRequest.Builder |
autoPay(Boolean autoPay)
Specifies whether to automatically pay for the subscription Internet-facing CLB instance.
|
CreateLoadBalancerRequest.Builder |
bandwidth(Integer bandwidth)
The maximum bandwidth of the listener.
|
CreateLoadBalancerRequest |
build() |
CreateLoadBalancerRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateLoadBalancerRequest.Builder |
deleteProtection(String deleteProtection)
Specifies whether to enable deletion protection for the CLB instance.
|
CreateLoadBalancerRequest.Builder |
duration(Integer duration)
The subscription duration of the Internet-facing CLB instance.
|
CreateLoadBalancerRequest.Builder |
instanceChargeType(String instanceChargeType)
The metering method of the CLB instance.
|
CreateLoadBalancerRequest.Builder |
internetChargeType(String internetChargeType)
The metering method of the Internet-facing CLB instance.
|
CreateLoadBalancerRequest.Builder |
loadBalancerName(String loadBalancerName)
The CLB instance name.
|
CreateLoadBalancerRequest.Builder |
loadBalancerSpec(String loadBalancerSpec)
The specification of the CLB instance.
|
CreateLoadBalancerRequest.Builder |
masterZoneId(String masterZoneId)
The ID of the primary zone to which the CLB instance belongs.
|
CreateLoadBalancerRequest.Builder |
modificationProtectionReason(String modificationProtectionReason)
The reason for enabling the configuration read-only mode.
|
CreateLoadBalancerRequest.Builder |
modificationProtectionStatus(String modificationProtectionStatus)
Specifies whether to enable the configuration read-only mode.
|
CreateLoadBalancerRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateLoadBalancerRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateLoadBalancerRequest.Builder |
payType(String payType)
The billing method of the CLB instance.
|
CreateLoadBalancerRequest.Builder |
pricingCycle(String pricingCycle)
The billing cycle of the subscription Internet-facing CLB instance.
|
CreateLoadBalancerRequest.Builder |
regionId(String regionId)
The region ID of the CLB instance.
|
CreateLoadBalancerRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group.
|
CreateLoadBalancerRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateLoadBalancerRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateLoadBalancerRequest.Builder |
slaveZoneId(String slaveZoneId)
The ID of the secondary zone to which the CLB instance belongs.
|
CreateLoadBalancerRequest.Builder |
tag(List<CreateLoadBalancerRequest.Tag> tag)
The tags.
|
CreateLoadBalancerRequest.Builder |
vpcId(String vpcId)
The ID of the virtual private cloud (VPC) to which the CLB instance belongs.
|
CreateLoadBalancerRequest.Builder |
vSwitchId(String vSwitchId)
The ID of the vSwitch to which the CLB instance belongs.
|
public CreateLoadBalancerRequest.Builder address(String address)
public CreateLoadBalancerRequest.Builder addressIPVersion(String addressIPVersion)
public CreateLoadBalancerRequest.Builder addressType(String addressType)
* **internet**: After an Internet-facing CLB instance is created, the system assigns a public IP address to the CLB instance. Then, the CLB instance can forward requests over the Internet. * **intranet**: After an internal-facing CLB instance is created, the system assigns a private IP address to the CLB instance. Then, the CLB instance can forward requests only over the internal networks.
public CreateLoadBalancerRequest.Builder autoPay(Boolean autoPay)
* **true**: automatically pays for the CLB instance. After you call this operation, the system automatically completes the payment and creates the CLB instance. * **false** (default): After you call the operation, the order is created but the payment is not completed. You can view the pending order in the console. The CLB instance will not be created until you complete the payment. > This parameter is supported only by subscription instances created on the Alibaba Cloud China site.
public CreateLoadBalancerRequest.Builder bandwidth(Integer bandwidth)
Valid values: **1** to **5120**. For a pay-by-bandwidth Internet-facing CLB instance, you can specify the maximum bandwidth of each listener. The sum of the maximum bandwidth of all listeners cannot exceed the maximum bandwidth of the CLB instance.
public CreateLoadBalancerRequest.Builder clientToken(String clientToken)
You can use the client to generate the token, but you must make sure that the token is unique among different requests. > If you do not specify this parameter, the system uses the **request ID** as the **client token**. The **request ID** may be different for each request.
public CreateLoadBalancerRequest.Builder deleteProtection(String deleteProtection)
* **on** * **off**
public CreateLoadBalancerRequest.Builder duration(Integer duration)
* If **PricingCycle** is set to **month**, the valid values are **1 to 9**. * If **PricingCycle** is set to **year**, the valid values are **1 to 5**. > This parameter is supported only by subscription instances created on the Alibaba Cloud China site.
public CreateLoadBalancerRequest.Builder instanceChargeType(String instanceChargeType)
* **PayBySpec** (default) * **PayByCLCU** > This parameter is supported only by instances created on the Alibaba Cloud China site and only when **PayType** is set to **PayOnDemand**.
public CreateLoadBalancerRequest.Builder internetChargeType(String internetChargeType)
* **paybytraffic** (default) > If you set the value to **paybytraffic**, you do not need to specify **Bandwidth**. Even if you specify **Bandwidth**, the value does not take effect. * **paybybandwidth**: pay-by-bandwidth > If you set **PayType** to **PayOnDemand** and set **InstanceChargeType** to **PayByCLCU**, you must set InternetChargeType to **paybytraffic**.
public CreateLoadBalancerRequest.Builder loadBalancerName(String loadBalancerName)
The name must be 1 to 80 characters in length, and can contain digits, periods (.), underscores (\_), and hyphens (-). It must start with a letter. If you do not specify this parameter, the system automatically assigns a name to the CLB instance.
public CreateLoadBalancerRequest.Builder loadBalancerSpec(String loadBalancerSpec)
* **slb.s1.small** * **slb.s2.small** * **slb.s2.medium** * **slb.s3.small** * **slb.s3.medium** * **slb.s3.large** ** **Note** If you do not specify this parameter, a shared-resource CLB instance is created. Shared-resource CLB instances are no longer available for purchase. Therefore, you must specify this parameter. If **InstanceChargeType** is set to **PayByCLCU**, this parameter is invalid and you do not need to specify this parameter.
public CreateLoadBalancerRequest.Builder masterZoneId(String masterZoneId)
You can call the [DescribeZone](~~DescribeZone~~) operation to query the primary and secondary zones in the region where you want to create the CLB instance.
public CreateLoadBalancerRequest.Builder modificationProtectionReason(String modificationProtectionReason)
> This parameter takes effect only when **ModificationProtectionStatus** is set to **ConsoleProtection**.
public CreateLoadBalancerRequest.Builder modificationProtectionStatus(String modificationProtectionStatus)
* **NonProtection**: disables the configuration read-only mode. After you disable the configuration read-only mode, the value of **ModificationProtectionReason** is cleared. * **ConsoleProtection**: enables the configuration read-only mode. > If you set this parameter to **ConsoleProtection**, you cannot modify instance configurations in the CLB console. However, you can modify instance configurations by calling API operations.
public CreateLoadBalancerRequest.Builder ownerAccount(String ownerAccount)
public CreateLoadBalancerRequest.Builder ownerId(Long ownerId)
public CreateLoadBalancerRequest.Builder payType(String payType)
**PayOnDemand**, which specifies the pay-as-you-go billing method.
public CreateLoadBalancerRequest.Builder pricingCycle(String pricingCycle)
* **month** * **year** > This parameter is supported only by subscription instances created on the Alibaba Cloud China site.
public CreateLoadBalancerRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~DescribeRegions~~) operation to query the most recent region list.
public CreateLoadBalancerRequest.Builder resourceGroupId(String resourceGroupId)
public CreateLoadBalancerRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateLoadBalancerRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateLoadBalancerRequest.Builder slaveZoneId(String slaveZoneId)
You can call the [DescribeZone](~~DescribeZone~~) operation to query the primary and secondary zones in the region where you want to create the CLB instance.
public CreateLoadBalancerRequest.Builder tag(List<CreateLoadBalancerRequest.Tag> tag)
public CreateLoadBalancerRequest.Builder vSwitchId(String vSwitchId)
If you want to deploy the CLB instance in a VPC, this parameter is required. If this parameter is specified, **AddessType** is set to **intranet** by default.
public CreateLoadBalancerRequest.Builder vpcId(String vpcId)
public CreateLoadBalancerRequest build()
Copyright © 2024. All rights reserved.