public static final class AssociateEipAddressRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
AssociateEipAddressRequest.Builder |
allocationId(String allocationId)
The ID of the EIP that you want to associate with an instance.
|
AssociateEipAddressRequest |
build() |
AssociateEipAddressRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
AssociateEipAddressRequest.Builder |
instanceId(String instanceId)
The ID of the instance with which you want to associate the EIP.
|
AssociateEipAddressRequest.Builder |
instanceRegionId(String instanceRegionId)
The ID of the region in which the instance with which you want to associate the EIP resides.
|
AssociateEipAddressRequest.Builder |
instanceType(String instanceType)
The type of the instance with which you want to associate the EIP.
|
AssociateEipAddressRequest.Builder |
mode(String mode)
The association mode.
|
AssociateEipAddressRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
AssociateEipAddressRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
AssociateEipAddressRequest.Builder |
privateIpAddress(String privateIpAddress)
The IP address in the CIDR block of the vSwitch.
|
AssociateEipAddressRequest.Builder |
regionId(String regionId)
The ID of the region to which the EIP belongs.
|
AssociateEipAddressRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
AssociateEipAddressRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
AssociateEipAddressRequest.Builder |
vpcId(String vpcId)
The ID of the VPC in which an IPv4 gateway is created.
|
public AssociateEipAddressRequest.Builder allocationId(String allocationId)
public AssociateEipAddressRequest.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 AssociateEipAddressRequest.Builder instanceId(String instanceId)
You can enter the ID of a NAT gateway, CLB instance, ECS instance, secondary ENI, HAVIP, or IP address.
public AssociateEipAddressRequest.Builder instanceRegionId(String instanceRegionId)
> This parameter is required only when the EIP is added to a shared Global Accelerator (GA) instance.
public AssociateEipAddressRequest.Builder instanceType(String instanceType)
* **Nat**: NAT gateway * **SlbInstance**: CLB instance * **EcsInstance** (default): ECS instance * **NetworkInterface**: secondary ENI * **HaVip**: HAVIP * **IpAddress**: IP address > The default value is **EcsInstance**. If the instance with which you want to associate the EIP is not an ECS instance, this parameter is required.
public AssociateEipAddressRequest.Builder mode(String mode)
* **NAT** (default): NAT mode * **MULTI_BINDED**: multi-EIP-to-ENI mode * **BINDED**: cut-network interface controller mode > This parameter is required only when **InstanceType** is set to **NetworkInterface**.
public AssociateEipAddressRequest.Builder ownerAccount(String ownerAccount)
public AssociateEipAddressRequest.Builder ownerId(Long ownerId)
public AssociateEipAddressRequest.Builder privateIpAddress(String privateIpAddress)
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
public AssociateEipAddressRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the region ID.
public AssociateEipAddressRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public AssociateEipAddressRequest.Builder resourceOwnerId(Long resourceOwnerId)
public AssociateEipAddressRequest.Builder vpcId(String vpcId)
When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations. > This parameter is required if **InstanceType** is set to **IpAddress**, which indicates that the EIP is to be associated with an IP address.
public AssociateEipAddressRequest build()
Copyright © 2024. All rights reserved.