public class Target extends AbstractModel
| Constructor and Description | 
|---|
Target()  | 
Target(Target 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 | 
getEniIp()
Get It is required when binding an IP. 
 | 
String | 
getInstanceId()
Get Unique ID of a CVM instance, which is required when binding a CVM instance. 
 | 
Long | 
getPort()
Get Listening port of a real server
Note: this parameter is required when binding a CVM or ENI. 
 | 
String | 
getType()
Get Real server type. 
 | 
Long | 
getWeight()
Get The new forwarding weight of the real server. 
 | 
void | 
setEniIp(String EniIp)
Set It is required when binding an IP. 
 | 
void | 
setInstanceId(String InstanceId)
Set Unique ID of a CVM instance, which is required when binding a CVM instance. 
 | 
void | 
setPort(Long Port)
Set Listening port of a real server
Note: this parameter is required when binding a CVM or ENI. 
 | 
void | 
setType(String Type)
Set Real server type. 
 | 
void | 
setWeight(Long Weight)
Set The new forwarding weight of the 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, toJsonStringpublic Target()
public Target(Target source)
public Long getPort()
public void setPort(Long Port)
Port - Listening port of a real server
Note: this parameter is required when binding a CVM or ENI.
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 is required when binding a CVM instance. It can be obtained from the `InstanceId` field in the response of the `DescribeInstances` API. It indicates binding the primary IP of the primary ENI.
Note: Either `InstanceId` or `EniIp` can 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 - The new forwarding weight of the real server. Value range: [0, 100]. Default: 10. This parameter takes priority over `Weight` in [`RsWeightRule`](https://intl.cloud.tencent.com/document/api/214/30694?from_cn_redirect=1#RsWeightRule). If it’s left empty, the value of `Weight` in `RsWeightRule` will be used.public String getEniIp()
public void setEniIp(String EniIp)
EniIp - It is required when binding an IP. ENI IPs and other private IPs are supported. To bind an ENI IP, the ENI should be bound to a CVM instance before being bound to a CLB instance.
Note: Either `InstanceId` or `EniIp` can be passed in. `EniIp` is required in a cross-region binding or when the dual-stack IPV6 CVM is bound.
Note: This field may return `null`, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.