public class ModifyTargetWeightRequest extends AbstractModel
Constructor and Description |
---|
ModifyTargetWeightRequest() |
ModifyTargetWeightRequest(ModifyTargetWeightRequest 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 |
getDomain()
Get Target rule domain name.
|
String |
getListenerId()
Get CLB listener ID
|
String |
getLoadBalancerId()
Get CLB instance ID
|
String |
getLocationId()
Get Forwarding rule ID.
|
Target[] |
getTargets()
Get List of real servers for which to modify the weights
|
String |
getUrl()
Get Target rule URL.
|
Long |
getWeight()
Get New forwarding weight of a real server.
|
void |
setDomain(String Domain)
Set Target rule domain name.
|
void |
setListenerId(String ListenerId)
Set CLB listener ID
|
void |
setLoadBalancerId(String LoadBalancerId)
Set CLB instance ID
|
void |
setLocationId(String LocationId)
Set Forwarding rule ID.
|
void |
setTargets(Target[] Targets)
Set List of real servers for which to modify the weights
|
void |
setUrl(String Url)
Set Target rule URL.
|
void |
setWeight(Long Weight)
Set New 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 ModifyTargetWeightRequest()
public ModifyTargetWeightRequest(ModifyTargetWeightRequest source)
public String getLoadBalancerId()
public void setLoadBalancerId(String LoadBalancerId)
LoadBalancerId
- CLB instance IDpublic String getListenerId()
public void setListenerId(String ListenerId)
ListenerId
- CLB listener IDpublic String getLocationId()
public void setLocationId(String LocationId)
LocationId
- Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.public String getDomain()
public void setDomain(String Domain)
Domain
- Target rule domain name. This parameter does not take effect if LocationId is specified.public String getUrl()
public void setUrl(String Url)
Url
- Target rule URL. This parameter does not take effect if LocationId is specified.public Target[] getTargets()
public void setTargets(Target[] Targets)
Targets
- List of real servers for which to modify the weightspublic Long getWeight()
public void setWeight(Long Weight)
Weight
- New forwarding weight of a real server. Value range: 0-100. Default value: 10. If the Targets.Weight parameter is set, this parameter will not take effect.Copyright © 2023. All rights reserved.