public class AssociateAddressRequest extends AbstractModel
Constructor and Description |
---|
AssociateAddressRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getAddressId()
Get The unique ID of the EIP, such as `eip-11112222`.
|
String |
getInstanceId()
Get The ID of the instance to be bound, such as `ins-11112222`.
|
String |
getNetworkInterfaceId()
Get The ID of the ENI to be bonud, such as `eni-11112222`.
|
String |
getPrivateIpAddress()
Get The private IP to be bound.
|
void |
setAddressId(String AddressId)
Set The unique ID of the EIP, such as `eip-11112222`.
|
void |
setInstanceId(String InstanceId)
Set The ID of the instance to be bound, such as `ins-11112222`.
|
void |
setNetworkInterfaceId(String NetworkInterfaceId)
Set The ID of the ENI to be bonud, such as `eni-11112222`.
|
void |
setPrivateIpAddress(String PrivateIpAddress)
Set The private IP to be bound.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getAddressId()
public void setAddressId(String AddressId)
AddressId
- The unique ID of the EIP, such as `eip-11112222`.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- The ID of the instance to be bound, such as `ins-11112222`. You can query the instance ID by logging into the [Console](https://console.cloud.tencent.com/cvm). You can also obtain the parameter value from the `InstanceId` field in the returned result of [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) API.public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String NetworkInterfaceId)
NetworkInterfaceId
- The ID of the ENI to be bonud, such as `eni-11112222`. `NetworkInterfaceId` and `InstanceId` cannot be specified at the same time. You can query the ENI ID by logging into the [Console](https://console.cloud.tencent.com/vpc/eni). You can also obtain the parameter value from the `networkInterfaceId` field in the returned result of [DescribeNetworkInterfaces](https://intl.cloud.tencent.com/document/api/215/15817?from_cn_redirect=1) API.public String getPrivateIpAddress()
public void setPrivateIpAddress(String PrivateIpAddress)
PrivateIpAddress
- The private IP to be bound. If you specify `NetworkInterfaceId`, then you must also specify `PrivateIpAddress`, indicating the EIP is bound to the specified private IP of the specified ENI. At the same time, you must ensure the specified `PrivateIpAddress` is a private IP on the `NetworkInterfaceId`. You can query the private IP of the specified ENI by logging into the [Console](https://console.cloud.tencent.com/vpc/eni). You can also obtain the parameter value from the `privateIpAddress` field in the returned result of [DescribeNetworkInterfaces](https://intl.cloud.tencent.com/document/api/215/15817?from_cn_redirect=1) API.Copyright © 2020. All rights reserved.