public class Target extends AbstractModel
Constructor and Description |
---|
Target() |
Modifier and Type | Method and Description |
---|---|
String |
getEniIp()
Get This parameter must be passed in when you bind an ENI, which represents the IP address of the ENI.
|
String |
getInstanceId()
Get Unique ID of a CVM instance, which needs to be passed in when binding a CVM instance and can be obtained from the InstanceId field in the return of the DescribeInstances API.
|
Long |
getPort()
Get Listening port of a real server
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getType()
Get Real server type.
|
Long |
getWeight()
Get Forwarding weight of a real server.
|
void |
setEniIp(String EniIp)
Set This parameter must be passed in when you bind an ENI, which represents the IP address of the ENI.
|
void |
setInstanceId(String InstanceId)
Set Unique ID of a CVM instance, which needs to be passed in when binding a CVM instance and can be obtained from the InstanceId field in the return of the DescribeInstances API.
|
void |
setPort(Long Port)
Set Listening port of a real server
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setType(String Type)
Set Real server type.
|
void |
setWeight(Long Weight)
Set Forwarding weight of a real server.
|
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 Long getPort()
public void setPort(Long Port)
Port
- Listening port of a real server
Note: This field may return null, indicating that no valid values can be obtained.public String getType()
public void setType(String Type)
Type
- Real server type. Value range: CVM (Cloud Virtual Machine), ENI (Elastic Network Interface). This parameter does not take effect currently as an input parameter.
Note: This field may return null, indicating that no valid values can be obtained.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Unique ID of a CVM instance, which needs to be passed in when binding a CVM instance and can be obtained from the InstanceId field in the return of the DescribeInstances API.
Note: Either InstanceId or EniIp must be passed in.
Note: This field may return null, indicating that no valid values can be obtained.public Long getWeight()
public void setWeight(Long Weight)
Weight
- Forwarding weight of a real server. Value range: [0, 100]. Default value: 10.public String getEniIp()
public void setEniIp(String EniIp)
EniIp
- This parameter must be passed in when you bind an ENI, which represents the IP address of the ENI. The ENI has to be bound to a CVM instance first before it can be bound to a CLB instance. Note: Either InstanceId or EniIp must be passed in. To bind an ENI, you need to submit a ticket for application first.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2020. All rights reserved.