public class RsWeightRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
RsWeightRule() |
RsWeightRule(RsWeightRule 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 |
getLocationId()
Get Forwarding rule ID, which is required only for layer-7 rules.
|
Target[] |
getTargets()
Get List of real servers whose weights to modify.
|
String |
getUrl()
Get Target rule URL.
|
Long |
getWeight()
Get The new forwarding weight of the real server.
|
void |
setDomain(String Domain)
Set Target rule domain name.
|
void |
setListenerId(String ListenerId)
Set CLB listener ID.
|
void |
setLocationId(String LocationId)
Set Forwarding rule ID, which is required only for layer-7 rules.
|
void |
setTargets(Target[] Targets)
Set List of real servers whose weights to modify.
|
void |
setUrl(String Url)
Set Target rule URL.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public RsWeightRule()
public RsWeightRule(RsWeightRule source)
public String getListenerId()
public void setListenerId(String ListenerId)
ListenerId
- CLB listener ID.public Target[] getTargets()
public void setTargets(Target[] Targets)
Targets
- List of real servers whose weights to modify.public String getLocationId()
public void setLocationId(String LocationId)
LocationId
- Forwarding rule ID, which is required only for layer-7 rules.public String getDomain()
public void setDomain(String Domain)
Domain
- Target rule domain name. This parameter does not take effect if LocationId is specifiedpublic String getUrl()
public void setUrl(String Url)
Url
- Target rule URL. This parameter does not take effect if LocationId is specifiedpublic Long getWeight()
public void setWeight(Long Weight)
Weight
- The new forwarding weight of the real server. Value range: [0, 100]. This parameter takes lower precedence than `Weight` in [`Targets`](https://intl.cloud.tencent.com/document/api/214/30694?from_cn_redirect=1#Target), which means that this parameter only takes effect when the `Weight` in `RsWeightRule` is left empty.Copyright © 2024. All rights reserved.