public class CreateTargetGroupRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateTargetGroupRequest() |
CreateTargetGroupRequest(CreateTargetGroupRequest 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 |
---|---|
Long |
getPort()
Get 目标组的默认端口, 后续添加服务器时可使用该默认端口。Port和TargetGroupInstances.N中的port二者必填其一。
|
TagInfo[] |
getTags()
Get 标签。
|
TargetGroupInstance[] |
getTargetGroupInstances()
Get 目标组绑定的后端服务器
|
String |
getTargetGroupName()
Get 目标组名称,限定50个字符
|
String |
getVpcId()
Get 目标组的vpcid属性,不填则使用默认vpc
|
Long |
getWeight()
Get 后端服务默认权重。
取值范围[0, 100]
设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
|
void |
setPort(Long Port)
Set 目标组的默认端口, 后续添加服务器时可使用该默认端口。Port和TargetGroupInstances.N中的port二者必填其一。
|
void |
setTags(TagInfo[] Tags)
Set 标签。
|
void |
setTargetGroupInstances(TargetGroupInstance[] TargetGroupInstances)
Set 目标组绑定的后端服务器
|
void |
setTargetGroupName(String TargetGroupName)
Set 目标组名称,限定50个字符
|
void |
setVpcId(String VpcId)
Set 目标组的vpcid属性,不填则使用默认vpc
|
void |
setWeight(Long Weight)
Set 后端服务默认权重。
取值范围[0, 100]
设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
|
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 CreateTargetGroupRequest()
public CreateTargetGroupRequest(CreateTargetGroupRequest source)
public String getTargetGroupName()
public void setTargetGroupName(String TargetGroupName)
TargetGroupName
- 目标组名称,限定50个字符public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- 目标组的vpcid属性,不填则使用默认vpcpublic Long getPort()
public void setPort(Long Port)
Port
- 目标组的默认端口, 后续添加服务器时可使用该默认端口。Port和TargetGroupInstances.N中的port二者必填其一。public TargetGroupInstance[] getTargetGroupInstances()
public void setTargetGroupInstances(TargetGroupInstance[] TargetGroupInstances)
TargetGroupInstances
- 目标组绑定的后端服务器public TagInfo[] getTags()
public void setTags(TagInfo[] Tags)
Tags
- 标签。public Long getWeight()
public void setWeight(Long Weight)
Weight
- 后端服务默认权重。
Copyright © 2025. All rights reserved.