public class KongUpstreamInfo extends AbstractModel
header, skipSign
Constructor and Description |
---|
KongUpstreamInfo() |
KongUpstreamInfo(KongUpstreamInfo 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 |
getAlgorithm()
Get 负载均衡算法,默认为 round-robin,还支持 least-connections,consisten_hashing
|
Long |
getAutoScalingCvmPort()
Get CVM弹性伸缩组端口
|
String |
getAutoScalingGroupID()
Get CVM弹性伸缩组ID
|
String |
getAutoScalingHookStatus()
Get CVM弹性伸缩组生命周期挂钩状态
|
String |
getAutoScalingTatCmdStatus()
Get CVM弹性伸缩组使用的CVM TAT命令状态
|
String |
getHealthStatus()
Get upstream健康状态HEALTHY(健康), UNHEALTHY(异常), HEALTHCHECKS_OFF(未开启)和NONE(不支持健康检查)
|
String |
getHost()
Get IP或域名
|
String |
getNamespace()
Get 命名空间
|
Long |
getPort()
Get 端口
|
String |
getRealSourceType()
Get 精确的服务来源类型,新建服务来源时候传入的类型
|
Boolean |
getScfCamAuthEnable()
Get 云函数是否开启CAM鉴权,不填时默认为开启(true)
|
Boolean |
getScfIsBase64Encoded()
Get 云函数是否开启Base64编码,默认为false
|
Boolean |
getScfIsIntegratedResponse()
Get 云函数是否开启响应集成,默认为false
|
String |
getScfLambdaName()
Get SCF函数名
|
String |
getScfLambdaQualifier()
Get SCF函数版本
|
String |
getScfNamespace()
Get SCF函数命名空间
|
String |
getScfType()
Get SCF函数类型
|
String |
getServiceName()
Get 服务(注册中心或Kubernetes中的服务)名字
|
Long |
getSlowStart()
Get 冷启动时间,单位秒
|
String |
getSourceID()
Get 服务来源ID
|
String |
getSourceName()
Get 服务来源的名字
|
String |
getSourceType()
Get 服务来源类型
|
KongTarget[] |
getTargets()
Get 服务后端类型是IPList时提供
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAlgorithm(String Algorithm)
Set 负载均衡算法,默认为 round-robin,还支持 least-connections,consisten_hashing
|
void |
setAutoScalingCvmPort(Long AutoScalingCvmPort)
Set CVM弹性伸缩组端口
|
void |
setAutoScalingGroupID(String AutoScalingGroupID)
Set CVM弹性伸缩组ID
|
void |
setAutoScalingHookStatus(String AutoScalingHookStatus)
Set CVM弹性伸缩组生命周期挂钩状态
|
void |
setAutoScalingTatCmdStatus(String AutoScalingTatCmdStatus)
Set CVM弹性伸缩组使用的CVM TAT命令状态
|
void |
setHealthStatus(String HealthStatus)
Set upstream健康状态HEALTHY(健康), UNHEALTHY(异常), HEALTHCHECKS_OFF(未开启)和NONE(不支持健康检查)
|
void |
setHost(String Host)
Set IP或域名
|
void |
setNamespace(String Namespace)
Set 命名空间
|
void |
setPort(Long Port)
Set 端口
|
void |
setRealSourceType(String RealSourceType)
Set 精确的服务来源类型,新建服务来源时候传入的类型
|
void |
setScfCamAuthEnable(Boolean ScfCamAuthEnable)
Set 云函数是否开启CAM鉴权,不填时默认为开启(true)
|
void |
setScfIsBase64Encoded(Boolean ScfIsBase64Encoded)
Set 云函数是否开启Base64编码,默认为false
|
void |
setScfIsIntegratedResponse(Boolean ScfIsIntegratedResponse)
Set 云函数是否开启响应集成,默认为false
|
void |
setScfLambdaName(String ScfLambdaName)
Set SCF函数名
|
void |
setScfLambdaQualifier(String ScfLambdaQualifier)
Set SCF函数版本
|
void |
setScfNamespace(String ScfNamespace)
Set SCF函数命名空间
|
void |
setScfType(String ScfType)
Set SCF函数类型
|
void |
setServiceName(String ServiceName)
Set 服务(注册中心或Kubernetes中的服务)名字
|
void |
setSlowStart(Long SlowStart)
Set 冷启动时间,单位秒
|
void |
setSourceID(String SourceID)
Set 服务来源ID
|
void |
setSourceName(String SourceName)
Set 服务来源的名字
|
void |
setSourceType(String SourceType)
Set 服务来源类型
|
void |
setTargets(KongTarget[] Targets)
Set 服务后端类型是IPList时提供
注意:此字段可能返回 null,表示取不到有效值。
|
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 KongUpstreamInfo()
public KongUpstreamInfo(KongUpstreamInfo source)
public String getHost()
public void setHost(String Host)
Host
- IP或域名public Long getPort()
public void setPort(Long Port)
Port
- 端口public String getSourceID()
public void setSourceID(String SourceID)
SourceID
- 服务来源IDpublic String getNamespace()
public void setNamespace(String Namespace)
Namespace
- 命名空间public String getServiceName()
public void setServiceName(String ServiceName)
ServiceName
- 服务(注册中心或Kubernetes中的服务)名字public KongTarget[] getTargets()
public void setTargets(KongTarget[] Targets)
Targets
- 服务后端类型是IPList时提供
注意:此字段可能返回 null,表示取不到有效值。public String getSourceType()
public void setSourceType(String SourceType)
SourceType
- 服务来源类型public String getScfType()
public void setScfType(String ScfType)
ScfType
- SCF函数类型public String getScfNamespace()
public void setScfNamespace(String ScfNamespace)
ScfNamespace
- SCF函数命名空间public String getScfLambdaName()
public void setScfLambdaName(String ScfLambdaName)
ScfLambdaName
- SCF函数名public String getScfLambdaQualifier()
public void setScfLambdaQualifier(String ScfLambdaQualifier)
ScfLambdaQualifier
- SCF函数版本public Long getSlowStart()
public void setSlowStart(Long SlowStart)
SlowStart
- 冷启动时间,单位秒public String getAlgorithm()
public void setAlgorithm(String Algorithm)
Algorithm
- 负载均衡算法,默认为 round-robin,还支持 least-connections,consisten_hashingpublic String getAutoScalingGroupID()
public void setAutoScalingGroupID(String AutoScalingGroupID)
AutoScalingGroupID
- CVM弹性伸缩组IDpublic Long getAutoScalingCvmPort()
public void setAutoScalingCvmPort(Long AutoScalingCvmPort)
AutoScalingCvmPort
- CVM弹性伸缩组端口public String getAutoScalingTatCmdStatus()
public void setAutoScalingTatCmdStatus(String AutoScalingTatCmdStatus)
AutoScalingTatCmdStatus
- CVM弹性伸缩组使用的CVM TAT命令状态public String getAutoScalingHookStatus()
public void setAutoScalingHookStatus(String AutoScalingHookStatus)
AutoScalingHookStatus
- CVM弹性伸缩组生命周期挂钩状态public String getSourceName()
public void setSourceName(String SourceName)
SourceName
- 服务来源的名字public String getRealSourceType()
public void setRealSourceType(String RealSourceType)
RealSourceType
- 精确的服务来源类型,新建服务来源时候传入的类型public String getHealthStatus()
public void setHealthStatus(String HealthStatus)
HealthStatus
- upstream健康状态HEALTHY(健康), UNHEALTHY(异常), HEALTHCHECKS_OFF(未开启)和NONE(不支持健康检查)public Boolean getScfCamAuthEnable()
public void setScfCamAuthEnable(Boolean ScfCamAuthEnable)
ScfCamAuthEnable
- 云函数是否开启CAM鉴权,不填时默认为开启(true)public Boolean getScfIsBase64Encoded()
public void setScfIsBase64Encoded(Boolean ScfIsBase64Encoded)
ScfIsBase64Encoded
- 云函数是否开启Base64编码,默认为falsepublic Boolean getScfIsIntegratedResponse()
public void setScfIsIntegratedResponse(Boolean ScfIsIntegratedResponse)
ScfIsIntegratedResponse
- 云函数是否开启响应集成,默认为falseCopyright © 2025. All rights reserved.