public class ServiceSpecFluentImpl<A extends ServiceSpecFluent<A>> extends BaseFluent<A> implements ServiceSpecFluent<A>
Modifier and Type | Class and Description |
---|---|
class |
ServiceSpecFluentImpl.PortsNestedImpl<N> |
ServiceSpecFluent.PortsNested<N>
_visitables
Constructor and Description |
---|
ServiceSpecFluentImpl() |
ServiceSpecFluentImpl(ServiceSpec instance) |
public ServiceSpecFluentImpl()
public ServiceSpecFluentImpl(ServiceSpec instance)
public String getClusterIP()
getClusterIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withClusterIP(String clusterIP)
withClusterIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasClusterIP()
hasClusterIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToDeprecatedPublicIPs(int index, String item)
addToDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A setToDeprecatedPublicIPs(int index, String item)
setToDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToDeprecatedPublicIPs(String... items)
addToDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addAllToDeprecatedPublicIPs(Collection<String> items)
addAllToDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeFromDeprecatedPublicIPs(String... items)
removeFromDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeAllFromDeprecatedPublicIPs(Collection<String> items)
removeAllFromDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public List<String> getDeprecatedPublicIPs()
getDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getDeprecatedPublicIP(int index)
getDeprecatedPublicIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getFirstDeprecatedPublicIP()
getFirstDeprecatedPublicIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getLastDeprecatedPublicIP()
getLastDeprecatedPublicIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getMatchingDeprecatedPublicIP(Predicate<String> predicate)
getMatchingDeprecatedPublicIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withDeprecatedPublicIPs(List<String> deprecatedPublicIPs)
withDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withDeprecatedPublicIPs(String... deprecatedPublicIPs)
withDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasDeprecatedPublicIPs()
hasDeprecatedPublicIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToExternalIPs(int index, String item)
addToExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A setToExternalIPs(int index, String item)
setToExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToExternalIPs(String... items)
addToExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addAllToExternalIPs(Collection<String> items)
addAllToExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeFromExternalIPs(String... items)
removeFromExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeAllFromExternalIPs(Collection<String> items)
removeAllFromExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public List<String> getExternalIPs()
getExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getExternalIP(int index)
getExternalIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getFirstExternalIP()
getFirstExternalIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getLastExternalIP()
getLastExternalIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getMatchingExternalIP(Predicate<String> predicate)
getMatchingExternalIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withExternalIPs(List<String> externalIPs)
withExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withExternalIPs(String... externalIPs)
withExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasExternalIPs()
hasExternalIPs
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getExternalName()
getExternalName
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withExternalName(String externalName)
withExternalName
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasExternalName()
hasExternalName
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getLoadBalancerIP()
getLoadBalancerIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withLoadBalancerIP(String loadBalancerIP)
withLoadBalancerIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasLoadBalancerIP()
hasLoadBalancerIP
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToLoadBalancerSourceRanges(int index, String item)
addToLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A setToLoadBalancerSourceRanges(int index, String item)
setToLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToLoadBalancerSourceRanges(String... items)
addToLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addAllToLoadBalancerSourceRanges(Collection<String> items)
addAllToLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeFromLoadBalancerSourceRanges(String... items)
removeFromLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeAllFromLoadBalancerSourceRanges(Collection<String> items)
removeAllFromLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public List<String> getLoadBalancerSourceRanges()
getLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getLoadBalancerSourceRange(int index)
getLoadBalancerSourceRange
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getFirstLoadBalancerSourceRange()
getFirstLoadBalancerSourceRange
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getLastLoadBalancerSourceRange()
getLastLoadBalancerSourceRange
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getMatchingLoadBalancerSourceRange(Predicate<String> predicate)
getMatchingLoadBalancerSourceRange
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withLoadBalancerSourceRanges(List<String> loadBalancerSourceRanges)
withLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withLoadBalancerSourceRanges(String... loadBalancerSourceRanges)
withLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasLoadBalancerSourceRanges()
hasLoadBalancerSourceRanges
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToPorts(int index, ServicePort item)
addToPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A setToPorts(int index, ServicePort item)
setToPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToPorts(ServicePort... items)
addToPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addAllToPorts(Collection<ServicePort> items)
addAllToPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeFromPorts(ServicePort... items)
removeFromPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeAllFromPorts(Collection<ServicePort> items)
removeAllFromPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
@Deprecated public List<ServicePort> getPorts()
getPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public List<ServicePort> buildPorts()
buildPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServicePort buildPort(int index)
buildPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServicePort buildFirstPort()
buildFirstPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServicePort buildLastPort()
buildLastPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServicePort buildMatchingPort(Predicate<ServicePortBuilder> predicate)
buildMatchingPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withPorts(List<ServicePort> ports)
withPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withPorts(ServicePort... ports)
withPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasPorts()
hasPorts
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServiceSpecFluent.PortsNested<A> addNewPort()
addNewPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServiceSpecFluent.PortsNested<A> addNewPortLike(ServicePort item)
addNewPortLike
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServiceSpecFluent.PortsNested<A> setNewPortLike(int index, ServicePort item)
setNewPortLike
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServiceSpecFluent.PortsNested<A> editPort(int index)
editPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServiceSpecFluent.PortsNested<A> editFirstPort()
editFirstPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServiceSpecFluent.PortsNested<A> editLastPort()
editLastPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public ServiceSpecFluent.PortsNested<A> editMatchingPort(Predicate<ServicePortBuilder> predicate)
editMatchingPort
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToSelector(String key, String value)
addToSelector
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A addToSelector(Map<String,String> map)
addToSelector
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeFromSelector(String key)
removeFromSelector
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A removeFromSelector(Map<String,String> map)
removeFromSelector
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Map<String,String> getSelector()
getSelector
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withSelector(Map<String,String> selector)
withSelector
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasSelector()
hasSelector
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getSessionAffinity()
getSessionAffinity
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withSessionAffinity(String sessionAffinity)
withSessionAffinity
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasSessionAffinity()
hasSessionAffinity
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public String getType()
getType
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public A withType(String type)
withType
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
public Boolean hasType()
hasType
in interface ServiceSpecFluent<A extends ServiceSpecFluent<A>>
Copyright © 2011–2017 Red Hat. All rights reserved.