@Generated(value="org.jsonschema2pojo") public class ServiceSpec extends Object
Constructor and Description |
---|
ServiceSpec()
No args constructor for use in serialization
|
ServiceSpec(String clusterIP,
List<String> deprecatedPublicIPs,
String portalIP,
List<ServicePort> ports,
Map<String,String> selector,
String sessionAffinity,
String type) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
String |
getClusterIP()
IP address of the service; usually assigned by the system; if specified
|
List<String> |
getDeprecatedPublicIPs()
deprecated.
|
String |
getPortalIP()
deprecated
|
List<ServicePort> |
getPorts()
ports exposed by the service; see http://releases.k8s.io/v1.0.0/docs/services.md#virtual-ips-and-service-proxies
|
Map<String,String> |
getSelector()
label keys and values that must match in order to receive traffic for this service; if empty
|
String |
getSessionAffinity()
enable client IP based session affinity; must be ClientIP or None; defaults to None; see http://releases.k8s.io/v1.0.0/docs/services.md#virtual-ips-and-service-proxies
|
String |
getType()
type of this service; must be ClusterIP
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setClusterIP(String clusterIP)
IP address of the service; usually assigned by the system; if specified
|
void |
setDeprecatedPublicIPs(List<String> deprecatedPublicIPs)
deprecated.
|
void |
setPortalIP(String portalIP)
deprecated
|
void |
setPorts(List<ServicePort> ports)
ports exposed by the service; see http://releases.k8s.io/v1.0.0/docs/services.md#virtual-ips-and-service-proxies
|
void |
setSelector(Map<String,String> selector)
label keys and values that must match in order to receive traffic for this service; if empty
|
void |
setSessionAffinity(String sessionAffinity)
enable client IP based session affinity; must be ClientIP or None; defaults to None; see http://releases.k8s.io/v1.0.0/docs/services.md#virtual-ips-and-service-proxies
|
void |
setType(String type)
type of this service; must be ClusterIP
|
public String getClusterIP()
public void setClusterIP(String clusterIP)
clusterIP
- The clusterIPpublic List<String> getDeprecatedPublicIPs()
public void setDeprecatedPublicIPs(List<String> deprecatedPublicIPs)
deprecatedPublicIPs
- The deprecatedPublicIPspublic String getPortalIP()
public void setPortalIP(String portalIP)
portalIP
- The portalIPpublic List<ServicePort> getPorts()
public void setPorts(List<ServicePort> ports)
ports
- The portspublic Map<String,String> getSelector()
public void setSelector(Map<String,String> selector)
selector
- The selectorpublic String getSessionAffinity()
public void setSessionAffinity(String sessionAffinity)
sessionAffinity
- The sessionAffinitypublic String getType()
public void setType(String type)
type
- The typeCopyright © 2011–2015 Red Hat. All rights reserved.