public class RsWeightRule extends AbstractModel
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 目标规则的域名,提供LocationId参数时本参数不生效。
|
String |
getListenerId()
Get 负载均衡监听器 ID。
|
String |
getLocationId()
Get 转发规则的ID,七层规则时需要此参数,4层规则不需要。
|
Target[] |
getTargets()
Get 要修改权重的后端机器列表。
|
String |
getUrl()
Get 目标规则的URL,提供LocationId参数时本参数不生效。
|
Long |
getWeight()
Get 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。
|
void |
setDomain(String Domain)
Set 目标规则的域名,提供LocationId参数时本参数不生效。
|
void |
setListenerId(String ListenerId)
Set 负载均衡监听器 ID。
|
void |
setLocationId(String LocationId)
Set 转发规则的ID,七层规则时需要此参数,4层规则不需要。
|
void |
setTargets(Target[] Targets)
Set 要修改权重的后端机器列表。
|
void |
setUrl(String Url)
Set 目标规则的URL,提供LocationId参数时本参数不生效。
|
void |
setWeight(Long Weight)
Set 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。
|
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 RsWeightRule()
public RsWeightRule(RsWeightRule source)
public String getListenerId()
public void setListenerId(String ListenerId)
ListenerId
- 负载均衡监听器 ID。public Target[] getTargets()
public void setTargets(Target[] Targets)
Targets
- 要修改权重的后端机器列表。public String getLocationId()
public void setLocationId(String LocationId)
LocationId
- 转发规则的ID,七层规则时需要此参数,4层规则不需要。public String getDomain()
public void setDomain(String Domain)
Domain
- 目标规则的域名,提供LocationId参数时本参数不生效。public String getUrl()
public void setUrl(String Url)
Url
- 目标规则的URL,提供LocationId参数时本参数不生效。public Long getWeight()
public void setWeight(Long Weight)
Weight
- 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。Copyright © 2022. All rights reserved.