public class AssociateEipAddressRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
allocationId
The ID of the EIP that you want to associate with an instance.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
instanceId
The ID of the instance with which you want to associate the EIP.
|
String |
instanceRegionId
The ID of the region in which the instance with which you want to associate the EIP resides.
|
String |
instanceType
The type of the instance with which you want to associate the EIP.
|
String |
mode
The association mode.
|
String |
ownerAccount |
Long |
ownerId |
String |
privateIpAddress
The IP address in the CIDR block of the vSwitch.
|
String |
regionId
The ID of the region to which the EIP belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
vpcId
The ID of the VPC in which an IPv4 gateway is created.
|
构造器和说明 |
---|
AssociateEipAddressRequest() |
@NameInMap(value="AllocationId") public String allocationId
The ID of the EIP that you want to associate with an instance.
This parameter is required.
example:eip-2zeerraiwb7ujsxdc****
@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 token can contain only ASCII characters.
example: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.
0c593ea1-3bea-11e9-b96b-88e9fe63****
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance with which you want to associate the EIP.
You can enter the ID of a NAT gateway, CLB instance, ECS instance, secondary ENI, HAVIP, or IP address.
This parameter is required.
example:i-2zebb08phyczzawe****
@NameInMap(value="InstanceRegionId") public String instanceRegionId
The ID of the region in which the instance with which you want to associate the EIP resides.
example:This parameter is required only when the EIP is added to a shared Global Accelerator (GA) instance.
cn-hangzhou
@NameInMap(value="InstanceType") public String instanceType
The type of the instance with which you want to associate the EIP. Valid values:
example: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.
EcsInstance
@NameInMap(value="Mode") public String mode
The association mode. Valid values:
example:This parameter is required only when InstanceType is set to NetworkInterface.
NAT
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PrivateIpAddress") public String privateIpAddress
The IP address in the CIDR block of the vSwitch.
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
example:192.168.XX.XX
@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.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="VpcId") public String vpcId
The ID of the VPC in which an IPv4 gateway is created. The VPC and the EIP must be in the same region.
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.
example:This parameter is required if InstanceType is set to IpAddress, which indicates that the EIP is to be associated with an IP address.
vpc-257gqcdfvx6n****
public static AssociateEipAddressRequest build(Map<String,?> map) throws Exception
Exception
public AssociateEipAddressRequest setAllocationId(String allocationId)
public String getAllocationId()
public AssociateEipAddressRequest setClientToken(String clientToken)
public String getClientToken()
public AssociateEipAddressRequest setInstanceId(String instanceId)
public String getInstanceId()
public AssociateEipAddressRequest setInstanceRegionId(String instanceRegionId)
public String getInstanceRegionId()
public AssociateEipAddressRequest setInstanceType(String instanceType)
public String getInstanceType()
public AssociateEipAddressRequest setMode(String mode)
public String getMode()
public AssociateEipAddressRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public AssociateEipAddressRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AssociateEipAddressRequest setPrivateIpAddress(String privateIpAddress)
public String getPrivateIpAddress()
public AssociateEipAddressRequest setRegionId(String regionId)
public String getRegionId()
public AssociateEipAddressRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AssociateEipAddressRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public AssociateEipAddressRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2024. All rights reserved.