Class RsWeightRule
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.clb.v20180317.models.RsWeightRule
-
public class RsWeightRule extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDomain()Get 目标规则的域名,提供LocationId参数时本参数不生效。StringgetListenerId()Get 负载均衡监听器 ID。StringgetLocationId()Get 转发规则的ID,七层规则时需要此参数,4层规则不需要。Target[]getTargets()Get 要修改权重的后端机器列表。StringgetUrl()Get 目标规则的URL,提供LocationId参数时本参数不生效。LonggetWeight()Get 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。voidsetDomain(String Domain)Set 目标规则的域名,提供LocationId参数时本参数不生效。voidsetListenerId(String ListenerId)Set 负载均衡监听器 ID。voidsetLocationId(String LocationId)Set 转发规则的ID,七层规则时需要此参数,4层规则不需要。voidsetTargets(Target[] Targets)Set 要修改权重的后端机器列表。voidsetUrl(String Url)Set 目标规则的URL,提供LocationId参数时本参数不生效。voidsetWeight(Long Weight)Set 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
RsWeightRule
public RsWeightRule()
-
RsWeightRule
public 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.
-
-
Method Detail
-
getListenerId
public String getListenerId()
Get 负载均衡监听器 ID。- Returns:
- ListenerId 负载均衡监听器 ID。
-
setListenerId
public void setListenerId(String ListenerId)
Set 负载均衡监听器 ID。- Parameters:
ListenerId- 负载均衡监听器 ID。
-
getTargets
public Target[] getTargets()
Get 要修改权重的后端机器列表。- Returns:
- Targets 要修改权重的后端机器列表。
-
setTargets
public void setTargets(Target[] Targets)
Set 要修改权重的后端机器列表。- Parameters:
Targets- 要修改权重的后端机器列表。
-
getLocationId
public String getLocationId()
Get 转发规则的ID,七层规则时需要此参数,4层规则不需要。- Returns:
- LocationId 转发规则的ID,七层规则时需要此参数,4层规则不需要。
-
setLocationId
public void setLocationId(String LocationId)
Set 转发规则的ID,七层规则时需要此参数,4层规则不需要。- Parameters:
LocationId- 转发规则的ID,七层规则时需要此参数,4层规则不需要。
-
getDomain
public String getDomain()
Get 目标规则的域名,提供LocationId参数时本参数不生效。- Returns:
- Domain 目标规则的域名,提供LocationId参数时本参数不生效。
-
setDomain
public void setDomain(String Domain)
Set 目标规则的域名,提供LocationId参数时本参数不生效。- Parameters:
Domain- 目标规则的域名,提供LocationId参数时本参数不生效。
-
getUrl
public String getUrl()
Get 目标规则的URL,提供LocationId参数时本参数不生效。- Returns:
- Url 目标规则的URL,提供LocationId参数时本参数不生效。
-
setUrl
public void setUrl(String Url)
Set 目标规则的URL,提供LocationId参数时本参数不生效。- Parameters:
Url- 目标规则的URL,提供LocationId参数时本参数不生效。
-
getWeight
public Long getWeight()
Get 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。- Returns:
- Weight 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。
-
setWeight
public void setWeight(Long Weight)
Set 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。- Parameters:
Weight- 后端服务修改后的转发权重,取值范围:[0,100]。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Weight参数,即最终的权重值以Target中的Weight参数值为准,仅当Target中的Weight参数为空时,才以RsWeightRule中的Weight参数为准。
-
-