public class ModifyTargetGroupAttributeRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyTargetGroupAttributeRequest() |
ModifyTargetGroupAttributeRequest(ModifyTargetGroupAttributeRequest 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 |
---|---|
Boolean |
getKeepaliveEnable()
Get 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,true:关闭;false:开启, 默认关闭。
|
Long |
getPort()
Get 目标组的新默认端口。全监听目标组不支持此参数。
|
Long |
getSessionExpireTime()
Get 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。TCP/UDP目标组不支持该参数。
|
String |
getTargetGroupId()
Get 目标组的ID。
|
String |
getTargetGroupName()
Get 目标组的新名称。
|
Long |
getWeight()
Get 后端服务默认权重。
取值范围[0, 100]
设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
v1目标组类型不支持设置Weight参数。
|
void |
setKeepaliveEnable(Boolean KeepaliveEnable)
Set 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,true:关闭;false:开启, 默认关闭。
|
void |
setPort(Long Port)
Set 目标组的新默认端口。全监听目标组不支持此参数。
|
void |
setSessionExpireTime(Long SessionExpireTime)
Set 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。TCP/UDP目标组不支持该参数。
|
void |
setTargetGroupId(String TargetGroupId)
Set 目标组的ID。
|
void |
setTargetGroupName(String TargetGroupName)
Set 目标组的新名称。
|
void |
setWeight(Long Weight)
Set 后端服务默认权重。
取值范围[0, 100]
设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
v1目标组类型不支持设置Weight参数。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyTargetGroupAttributeRequest()
public ModifyTargetGroupAttributeRequest(ModifyTargetGroupAttributeRequest source)
public String getTargetGroupId()
public void setTargetGroupId(String TargetGroupId)
TargetGroupId
- 目标组的ID。public String getTargetGroupName()
public void setTargetGroupName(String TargetGroupName)
TargetGroupName
- 目标组的新名称。public Long getPort()
public void setPort(Long Port)
Port
- 目标组的新默认端口。全监听目标组不支持此参数。public Long getWeight()
public void setWeight(Long Weight)
Weight
- 后端服务默认权重。
public Boolean getKeepaliveEnable()
public void setKeepaliveEnable(Boolean KeepaliveEnable)
KeepaliveEnable
- 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,true:关闭;false:开启, 默认关闭。public Long getSessionExpireTime()
public void setSessionExpireTime(Long SessionExpireTime)
SessionExpireTime
- 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。TCP/UDP目标组不支持该参数。Copyright © 2025. All rights reserved.