public class NetworkPolicySpecFluentImpl<A extends NetworkPolicySpecFluent<A>> extends BaseFluent<A> implements NetworkPolicySpecFluent<A>
Modifier and Type | Class and Description |
---|---|
class |
NetworkPolicySpecFluentImpl.EgressNestedImpl<N> |
class |
NetworkPolicySpecFluentImpl.IngressNestedImpl<N> |
class |
NetworkPolicySpecFluentImpl.PodSelectorNestedImpl<N> |
NetworkPolicySpecFluent.EgressNested<N>, NetworkPolicySpecFluent.IngressNested<N>, NetworkPolicySpecFluent.PodSelectorNested<N>
_visitables
Constructor and Description |
---|
NetworkPolicySpecFluentImpl() |
NetworkPolicySpecFluentImpl(NetworkPolicySpec instance) |
public NetworkPolicySpecFluentImpl()
public NetworkPolicySpecFluentImpl(NetworkPolicySpec instance)
public A addToEgress(int index, NetworkPolicyEgressRule item)
addToEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A setToEgress(int index, NetworkPolicyEgressRule item)
setToEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A addToEgress(NetworkPolicyEgressRule... items)
addToEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A addAllToEgress(Collection<NetworkPolicyEgressRule> items)
addAllToEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A removeFromEgress(NetworkPolicyEgressRule... items)
removeFromEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A removeAllFromEgress(Collection<NetworkPolicyEgressRule> items)
removeAllFromEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
@Deprecated public List<NetworkPolicyEgressRule> getEgress()
getEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public List<NetworkPolicyEgressRule> buildEgress()
buildEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicyEgressRule buildEgress(int index)
buildEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicyEgressRule buildFirstEgress()
buildFirstEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicyEgressRule buildLastEgress()
buildLastEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicyEgressRule buildMatchingEgress(Predicate<NetworkPolicyEgressRuleBuilder> predicate)
buildMatchingEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A withEgress(List<NetworkPolicyEgressRule> egress)
withEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A withEgress(NetworkPolicyEgressRule... egress)
withEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public Boolean hasEgress()
hasEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.EgressNested<A> addNewEgress()
addNewEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.EgressNested<A> addNewEgressLike(NetworkPolicyEgressRule item)
addNewEgressLike
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.EgressNested<A> setNewEgressLike(int index, NetworkPolicyEgressRule item)
setNewEgressLike
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.EgressNested<A> editEgress(int index)
editEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.EgressNested<A> editFirstEgress()
editFirstEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.EgressNested<A> editLastEgress()
editLastEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.EgressNested<A> editMatchingEgress(Predicate<NetworkPolicyEgressRuleBuilder> predicate)
editMatchingEgress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A addToIngress(int index, NetworkPolicyIngressRule item)
addToIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A setToIngress(int index, NetworkPolicyIngressRule item)
setToIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A addToIngress(NetworkPolicyIngressRule... items)
addToIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A addAllToIngress(Collection<NetworkPolicyIngressRule> items)
addAllToIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A removeFromIngress(NetworkPolicyIngressRule... items)
removeFromIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A removeAllFromIngress(Collection<NetworkPolicyIngressRule> items)
removeAllFromIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
@Deprecated public List<NetworkPolicyIngressRule> getIngress()
getIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public List<NetworkPolicyIngressRule> buildIngress()
buildIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicyIngressRule buildIngress(int index)
buildIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicyIngressRule buildFirstIngress()
buildFirstIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicyIngressRule buildLastIngress()
buildLastIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicyIngressRule buildMatchingIngress(Predicate<NetworkPolicyIngressRuleBuilder> predicate)
buildMatchingIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A withIngress(List<NetworkPolicyIngressRule> ingress)
withIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A withIngress(NetworkPolicyIngressRule... ingress)
withIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public Boolean hasIngress()
hasIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.IngressNested<A> addNewIngress()
addNewIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.IngressNested<A> addNewIngressLike(NetworkPolicyIngressRule item)
addNewIngressLike
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.IngressNested<A> setNewIngressLike(int index, NetworkPolicyIngressRule item)
setNewIngressLike
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.IngressNested<A> editIngress(int index)
editIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.IngressNested<A> editFirstIngress()
editFirstIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.IngressNested<A> editLastIngress()
editLastIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.IngressNested<A> editMatchingIngress(Predicate<NetworkPolicyIngressRuleBuilder> predicate)
editMatchingIngress
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
@Deprecated public LabelSelector getPodSelector()
getPodSelector
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public LabelSelector buildPodSelector()
buildPodSelector
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A withPodSelector(LabelSelector podSelector)
withPodSelector
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public Boolean hasPodSelector()
hasPodSelector
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.PodSelectorNested<A> withNewPodSelector()
withNewPodSelector
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.PodSelectorNested<A> withNewPodSelectorLike(LabelSelector item)
withNewPodSelectorLike
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.PodSelectorNested<A> editPodSelector()
editPodSelector
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.PodSelectorNested<A> editOrNewPodSelector()
editOrNewPodSelector
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public NetworkPolicySpecFluent.PodSelectorNested<A> editOrNewPodSelectorLike(LabelSelector item)
editOrNewPodSelectorLike
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A addToPolicyTypes(int index, String item)
addToPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A setToPolicyTypes(int index, String item)
setToPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A addToPolicyTypes(String... items)
addToPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A addAllToPolicyTypes(Collection<String> items)
addAllToPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A removeFromPolicyTypes(String... items)
removeFromPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A removeAllFromPolicyTypes(Collection<String> items)
removeAllFromPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public List<String> getPolicyTypes()
getPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public String getPolicyType(int index)
getPolicyType
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public String getFirstPolicyType()
getFirstPolicyType
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public String getLastPolicyType()
getLastPolicyType
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public String getMatchingPolicyType(Predicate<String> predicate)
getMatchingPolicyType
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A withPolicyTypes(List<String> policyTypes)
withPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public A withPolicyTypes(String... policyTypes)
withPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
public Boolean hasPolicyTypes()
hasPolicyTypes
in interface NetworkPolicySpecFluent<A extends NetworkPolicySpecFluent<A>>
Copyright © 2015–2018 Red Hat. All rights reserved.