public class Service extends AbstractModel
Constructor and Description |
---|
Service() |
Service(Service 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 |
getClusterIP()
Get 服务IP
|
Label[] |
getLabels()
Get 标签
|
String |
getName()
Get 名称
|
String |
getNamespace()
Get 命名空间默认default
|
PortConfig[] |
getPorts()
Get 端口配置
|
String |
getType()
Get 类型 (ClusterIP|NodePort)
|
void |
setClusterIP(String ClusterIP)
Set 服务IP
|
void |
setLabels(Label[] Labels)
Set 标签
|
void |
setName(String Name)
Set 名称
|
void |
setNamespace(String Namespace)
Set 命名空间默认default
|
void |
setPorts(PortConfig[] Ports)
Set 端口配置
|
void |
setType(String Type)
Set 类型 (ClusterIP|NodePort)
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Service()
public Service(Service source)
public String getName()
public void setName(String Name)
Name
- 名称public String getType()
public void setType(String Type)
Type
- 类型 (ClusterIP|NodePort)public PortConfig[] getPorts()
public void setPorts(PortConfig[] Ports)
Ports
- 端口配置public Label[] getLabels()
public void setLabels(Label[] Labels)
Labels
- 标签public String getNamespace()
public void setNamespace(String Namespace)
Namespace
- 命名空间默认defaultpublic String getClusterIP()
public void setClusterIP(String ClusterIP)
ClusterIP
- 服务IPCopyright © 2022. All rights reserved.