Class K8sService
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.apigateway.v20180808.models.K8sService
-
public class K8sService extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description K8sService()K8sService(K8sService 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 StringgetClusterId()Get k8s集群IDK8sLabel[]getExtraLabels()Get 额外选择的Pod的LabelStringgetName()Get 自定义的服务名字,可选StringgetNamespace()Get 容器命名空间LonggetPort()Get 服务的端口StringgetServiceName()Get 容器服务的名字LonggetWeight()Get 权重voidsetClusterId(String ClusterId)Set k8s集群IDvoidsetExtraLabels(K8sLabel[] ExtraLabels)Set 额外选择的Pod的LabelvoidsetName(String Name)Set 自定义的服务名字,可选voidsetNamespace(String Namespace)Set 容器命名空间voidsetPort(Long Port)Set 服务的端口voidsetServiceName(String ServiceName)Set 容器服务的名字voidsetWeight(Long Weight)Set 权重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
-
K8sService
public K8sService()
-
K8sService
public K8sService(K8sService 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
-
getWeight
public Long getWeight()
Get 权重- Returns:
- Weight 权重
-
setWeight
public void setWeight(Long Weight)
Set 权重- Parameters:
Weight- 权重
-
getClusterId
public String getClusterId()
Get k8s集群ID- Returns:
- ClusterId k8s集群ID
-
setClusterId
public void setClusterId(String ClusterId)
Set k8s集群ID- Parameters:
ClusterId- k8s集群ID
-
getNamespace
public String getNamespace()
Get 容器命名空间- Returns:
- Namespace 容器命名空间
-
setNamespace
public void setNamespace(String Namespace)
Set 容器命名空间- Parameters:
Namespace- 容器命名空间
-
getServiceName
public String getServiceName()
Get 容器服务的名字- Returns:
- ServiceName 容器服务的名字
-
setServiceName
public void setServiceName(String ServiceName)
Set 容器服务的名字- Parameters:
ServiceName- 容器服务的名字
-
getPort
public Long getPort()
Get 服务的端口- Returns:
- Port 服务的端口
-
setPort
public void setPort(Long Port)
Set 服务的端口- Parameters:
Port- 服务的端口
-
getExtraLabels
public K8sLabel[] getExtraLabels()
Get 额外选择的Pod的Label- Returns:
- ExtraLabels 额外选择的Pod的Label
-
setExtraLabels
public void setExtraLabels(K8sLabel[] ExtraLabels)
Set 额外选择的Pod的Label- Parameters:
ExtraLabels- 额外选择的Pod的Label
-
getName
public String getName()
Get 自定义的服务名字,可选- Returns:
- Name 自定义的服务名字,可选
-
setName
public void setName(String Name)
Set 自定义的服务名字,可选- Parameters:
Name- 自定义的服务名字,可选
-
-