public class V1NetworkPolicySpecFluentImpl<A extends V1NetworkPolicySpecFluent<A>> extends BaseFluent<A> implements V1NetworkPolicySpecFluent<A>
Modifier and Type | Class and Description |
---|---|
class |
V1NetworkPolicySpecFluentImpl.EgressNestedImpl<N> |
class |
V1NetworkPolicySpecFluentImpl.IngressNestedImpl<N> |
class |
V1NetworkPolicySpecFluentImpl.PodSelectorNestedImpl<N> |
V1NetworkPolicySpecFluent.EgressNested<N>, V1NetworkPolicySpecFluent.IngressNested<N>, V1NetworkPolicySpecFluent.PodSelectorNested<N>
_visitables, VISIT
Constructor and Description |
---|
V1NetworkPolicySpecFluentImpl() |
V1NetworkPolicySpecFluentImpl(io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance) |
Modifier and Type | Method and Description |
---|---|
A |
addAllToEgress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> items) |
A |
addAllToIngress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> items) |
A |
addAllToPolicyTypes(Collection<String> items) |
V1NetworkPolicySpecFluent.EgressNested<A> |
addNewEgress() |
V1NetworkPolicySpecFluent.EgressNested<A> |
addNewEgressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) |
V1NetworkPolicySpecFluent.IngressNested<A> |
addNewIngress() |
V1NetworkPolicySpecFluent.IngressNested<A> |
addNewIngressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) |
A |
addNewPolicyType(String original) |
A |
addToEgress(int index,
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) |
A |
addToEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) |
A |
addToIngress(int index,
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) |
A |
addToIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) |
A |
addToPolicyTypes(int index,
String item) |
A |
addToPolicyTypes(String... items) |
List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> |
buildEgress() |
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule |
buildEgress(int index) |
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule |
buildFirstEgress() |
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule |
buildFirstIngress() |
List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> |
buildIngress() |
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule |
buildIngress(int index) |
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule |
buildLastEgress() |
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule |
buildLastIngress() |
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule |
buildMatchingEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate) |
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule |
buildMatchingIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate) |
io.kubernetes.client.openapi.models.V1LabelSelector |
buildPodSelector() |
V1NetworkPolicySpecFluent.EgressNested<A> |
editEgress(int index) |
V1NetworkPolicySpecFluent.EgressNested<A> |
editFirstEgress() |
V1NetworkPolicySpecFluent.IngressNested<A> |
editFirstIngress() |
V1NetworkPolicySpecFluent.IngressNested<A> |
editIngress(int index) |
V1NetworkPolicySpecFluent.EgressNested<A> |
editLastEgress() |
V1NetworkPolicySpecFluent.IngressNested<A> |
editLastIngress() |
V1NetworkPolicySpecFluent.EgressNested<A> |
editMatchingEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate) |
V1NetworkPolicySpecFluent.IngressNested<A> |
editMatchingIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate) |
V1NetworkPolicySpecFluent.PodSelectorNested<A> |
editOrNewPodSelector() |
V1NetworkPolicySpecFluent.PodSelectorNested<A> |
editOrNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) |
V1NetworkPolicySpecFluent.PodSelectorNested<A> |
editPodSelector() |
boolean |
equals(Object o) |
List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> |
getEgress()
Deprecated.
|
String |
getFirstPolicyType() |
List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> |
getIngress()
Deprecated.
|
String |
getLastPolicyType() |
String |
getMatchingPolicyType(Predicate<String> predicate) |
io.kubernetes.client.openapi.models.V1LabelSelector |
getPodSelector()
Deprecated.
|
String |
getPolicyType(int index) |
List<String> |
getPolicyTypes() |
Boolean |
hasEgress() |
int |
hashCode() |
Boolean |
hasIngress() |
Boolean |
hasMatchingEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate) |
Boolean |
hasMatchingIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate) |
Boolean |
hasMatchingPolicyType(Predicate<String> predicate) |
Boolean |
hasPodSelector() |
Boolean |
hasPolicyTypes() |
A |
removeAllFromEgress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> items) |
A |
removeAllFromIngress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> items) |
A |
removeAllFromPolicyTypes(Collection<String> items) |
A |
removeFromEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) |
A |
removeFromIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) |
A |
removeFromPolicyTypes(String... items) |
A |
removeMatchingFromEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate) |
A |
removeMatchingFromIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate) |
V1NetworkPolicySpecFluent.EgressNested<A> |
setNewEgressLike(int index,
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) |
V1NetworkPolicySpecFluent.IngressNested<A> |
setNewIngressLike(int index,
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) |
A |
setToEgress(int index,
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) |
A |
setToIngress(int index,
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) |
A |
setToPolicyTypes(int index,
String item) |
A |
withEgress(List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> egress) |
A |
withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... egress) |
A |
withIngress(List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> ingress) |
A |
withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... ingress) |
V1NetworkPolicySpecFluent.PodSelectorNested<A> |
withNewPodSelector() |
V1NetworkPolicySpecFluent.PodSelectorNested<A> |
withNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) |
A |
withPodSelector(io.kubernetes.client.openapi.models.V1LabelSelector podSelector) |
A |
withPolicyTypes(List<String> policyTypes) |
A |
withPolicyTypes(String... policyTypes) |
accept, accept, acceptInternal, aggregate, aggregate, build, build, builderOf, canVisit, hasCompatibleVisitMethod
public V1NetworkPolicySpecFluentImpl()
public V1NetworkPolicySpecFluentImpl(io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance)
public A addToEgress(int index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item)
addToEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A setToEgress(int index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item)
setToEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addToEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items)
addToEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addAllToEgress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> items)
addAllToEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A removeFromEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items)
removeFromEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A removeAllFromEgress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> items)
removeAllFromEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A removeMatchingFromEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate)
removeMatchingFromEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
@Deprecated public List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> getEgress()
getEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> buildEgress()
buildEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildEgress(int index)
buildEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildFirstEgress()
buildFirstEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildLastEgress()
buildLastEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildMatchingEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate)
buildMatchingEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public Boolean hasMatchingEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate)
hasMatchingEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A withEgress(List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> egress)
withEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... egress)
withEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public Boolean hasEgress()
hasEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.EgressNested<A> addNewEgress()
addNewEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.EgressNested<A> addNewEgressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item)
addNewEgressLike
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.EgressNested<A> setNewEgressLike(int index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item)
setNewEgressLike
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.EgressNested<A> editEgress(int index)
editEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.EgressNested<A> editFirstEgress()
editFirstEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.EgressNested<A> editLastEgress()
editLastEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.EgressNested<A> editMatchingEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate)
editMatchingEgress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addToIngress(int index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item)
addToIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A setToIngress(int index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item)
setToIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addToIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items)
addToIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addAllToIngress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> items)
addAllToIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A removeFromIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items)
removeFromIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A removeAllFromIngress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> items)
removeAllFromIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A removeMatchingFromIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate)
removeMatchingFromIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
@Deprecated public List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> getIngress()
getIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> buildIngress()
buildIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildIngress(int index)
buildIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildFirstIngress()
buildFirstIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildLastIngress()
buildLastIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildMatchingIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate)
buildMatchingIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public Boolean hasMatchingIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate)
hasMatchingIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A withIngress(List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> ingress)
withIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... ingress)
withIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public Boolean hasIngress()
hasIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.IngressNested<A> addNewIngress()
addNewIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.IngressNested<A> addNewIngressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item)
addNewIngressLike
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.IngressNested<A> setNewIngressLike(int index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item)
setNewIngressLike
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.IngressNested<A> editIngress(int index)
editIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.IngressNested<A> editFirstIngress()
editFirstIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.IngressNested<A> editLastIngress()
editLastIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.IngressNested<A> editMatchingIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate)
editMatchingIngress
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
@Deprecated public io.kubernetes.client.openapi.models.V1LabelSelector getPodSelector()
getPodSelector
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public io.kubernetes.client.openapi.models.V1LabelSelector buildPodSelector()
buildPodSelector
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A withPodSelector(io.kubernetes.client.openapi.models.V1LabelSelector podSelector)
withPodSelector
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public Boolean hasPodSelector()
hasPodSelector
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.PodSelectorNested<A> withNewPodSelector()
withNewPodSelector
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.PodSelectorNested<A> withNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item)
withNewPodSelectorLike
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.PodSelectorNested<A> editPodSelector()
editPodSelector
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.PodSelectorNested<A> editOrNewPodSelector()
editOrNewPodSelector
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public V1NetworkPolicySpecFluent.PodSelectorNested<A> editOrNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item)
editOrNewPodSelectorLike
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addToPolicyTypes(int index, String item)
addToPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A setToPolicyTypes(int index, String item)
setToPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addToPolicyTypes(String... items)
addToPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addAllToPolicyTypes(Collection<String> items)
addAllToPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A removeFromPolicyTypes(String... items)
removeFromPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A removeAllFromPolicyTypes(Collection<String> items)
removeAllFromPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public List<String> getPolicyTypes()
getPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public String getPolicyType(int index)
getPolicyType
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public String getFirstPolicyType()
getFirstPolicyType
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public String getLastPolicyType()
getLastPolicyType
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public String getMatchingPolicyType(Predicate<String> predicate)
getMatchingPolicyType
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public Boolean hasMatchingPolicyType(Predicate<String> predicate)
hasMatchingPolicyType
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A withPolicyTypes(List<String> policyTypes)
withPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A withPolicyTypes(String... policyTypes)
withPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public Boolean hasPolicyTypes()
hasPolicyTypes
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
public A addNewPolicyType(String original)
addNewPolicyType
in interface V1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
Copyright © 2021. All rights reserved.