public class AssociateAddressRequest extends AbstractModel
Constructor and Description |
---|
AssociateAddressRequest() |
AssociateAddressRequest(AssociateAddressRequest 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getAddressId()
Get Unique EIP ID, such as `eip-11112222`.
|
String |
getEcmRegion()
Get ECM region
|
String |
getInstanceId()
Get ID of the instance to be bound.
|
String |
getNetworkInterfaceId()
Get ID of the ENI to be bound, such as `eni-11112222`.
|
String |
getPrivateIpAddress()
Get Private IP to be bound.
|
void |
setAddressId(String AddressId)
Set Unique EIP ID, such as `eip-11112222`.
|
void |
setEcmRegion(String EcmRegion)
Set ECM region
|
void |
setInstanceId(String InstanceId)
Set ID of the instance to be bound.
|
void |
setNetworkInterfaceId(String NetworkInterfaceId)
Set ID of the ENI to be bound, such as `eni-11112222`.
|
void |
setPrivateIpAddress(String PrivateIpAddress)
Set 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 AssociateAddressRequest()
public AssociateAddressRequest(AssociateAddressRequest source)
public String getEcmRegion()
public void setEcmRegion(String EcmRegion)
EcmRegion
- ECM regionpublic String getAddressId()
public void setAddressId(String AddressId)
AddressId
- Unique EIP ID, such as `eip-11112222`.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the instance to be bound.public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String NetworkInterfaceId)
NetworkInterfaceId
- ID of the ENI to be bound, such as `eni-11112222`. `NetworkInterfaceId` and `InstanceId` cannot be specified at the same time. The ENI ID can be obtained from the `networkInterfaceId` field in the returned value of the `DescribeNetworkInterfaces` API.public String getPrivateIpAddress()
public void setPrivateIpAddress(String PrivateIpAddress)
PrivateIpAddress
- Private IP to be bound. If you specify `NetworkInterfaceId`, you must also specify `PrivateIpAddress`, which means to bind the EIP to the specified private IP of the specified ENI. You must also make sure that the specified `PrivateIpAddress` is a private IP of the specified `NetworkInterfaceId`. The private IP of the specified ENI can be obtained from the `privateIpAddress` field in the returned value of the `DescribeNetworkInterfaces` API.Copyright © 2023. All rights reserved.