| Package | Description | 
|---|---|
| com.tencentcloudapi.vpc.v20170312 | |
| com.tencentcloudapi.vpc.v20170312.models | 
| Modifier and Type | Method and Description | 
|---|---|
| AssociateAddressResponse | VpcClient. AssociateAddress(AssociateAddressRequest req)本接口 (AssociateAddress) 用于将[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)绑定到实例或弹性网卡的指定内网 IP 上。
 将 EIP 绑定到实例(CVM)上,其本质是将 EIP 绑定到实例上主网卡的主内网 IP 上。
 将 EIP 绑定到主网卡的主内网IP时,如主内网IP已绑定普通公网IP,必须先退还才能绑定EIP。
 将 EIP 绑定到指定网卡的内网 IP上(非主网卡的主内网IP),则必须先解绑该 EIP,才能再绑定新的。
 将 EIP 绑定到NAT网关,请使用接口[AssociateNatGatewayAddress](https://cloud.tencent.com/document/product/215/36722)。
 EIP 如果欠费或被封堵,则不能被绑定。
 只有状态为 UNBIND 的 EIP 才能够被绑定。 | 
| Constructor and Description | 
|---|
| AssociateAddressResponse(AssociateAddressResponse source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
Copyright © 2025. All rights reserved.