Class V1NetworkPolicySpecFluentImpl<A extends V1NetworkPolicySpecFluent<A>>
java.lang.Object
io.kubernetes.client.fluent.BaseFluent<A>
io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluentImpl<A>
- All Implemented Interfaces:
Fluent<A>
,Visitable<A>
,V1NetworkPolicySpecFluent<A>
- Direct Known Subclasses:
V1NetworkPolicySpecBuilder
public class V1NetworkPolicySpecFluentImpl<A extends V1NetworkPolicySpecFluent<A>>
extends BaseFluent<A>
implements V1NetworkPolicySpecFluent<A>
Generated
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent
V1NetworkPolicySpecFluent.EgressNested<N>, V1NetworkPolicySpecFluent.IngressNested<N>, V1NetworkPolicySpecFluent.PodSelectorNested<N>
-
Field Summary
Fields inherited from class io.kubernetes.client.fluent.BaseFluent
_visitables, VISIT
-
Constructor Summary
ConstructorsConstructorDescriptionV1NetworkPolicySpecFluentImpl
(io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance) -
Method Summary
Modifier and TypeMethodDescriptionaddAllToEgress
(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> items) addAllToIngress
(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> items) addAllToPolicyTypes
(Collection<String> items) addNewEgressLike
(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) addNewIngressLike
(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) addToEgress
(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) addToEgress
(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) addToIngress
(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) addToIngress
(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) addToPolicyTypes
(Integer index, String item) addToPolicyTypes
(String... items) List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule>
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule
buildEgress
(Integer index) io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule
List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule>
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule
buildIngress
(Integer index) io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule
io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule
io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule
io.kubernetes.client.openapi.models.V1LabelSelector
editEgress
(Integer index) editIngress
(Integer index) editOrNewPodSelectorLike
(io.kubernetes.client.openapi.models.V1LabelSelector item) boolean
List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule>
Deprecated.List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule>
Deprecated.getMatchingPolicyType
(Predicate<String> predicate) io.kubernetes.client.openapi.models.V1LabelSelector
Deprecated.getPolicyType
(Integer index) int
hashCode()
hasMatchingPolicyType
(Predicate<String> predicate) removeAllFromEgress
(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> items) removeAllFromIngress
(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> items) removeAllFromPolicyTypes
(Collection<String> items) removeFromEgress
(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) removeFromIngress
(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) removeFromPolicyTypes
(String... items) setNewEgressLike
(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) setNewIngressLike
(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) setToEgress
(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) setToIngress
(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) setToPolicyTypes
(Integer index, String item) toString()
withEgress
(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... egress) withEgress
(List<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> egress) withIngress
(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... ingress) withIngress
(List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> ingress) withNewPodSelectorLike
(io.kubernetes.client.openapi.models.V1LabelSelector item) withPodSelector
(io.kubernetes.client.openapi.models.V1LabelSelector podSelector) withPolicyTypes
(String... policyTypes) withPolicyTypes
(List<String> policyTypes) Methods inherited from class io.kubernetes.client.fluent.BaseFluent
accept, accept, accept, accept, aggregate, aggregate, build, build, builderOf
-
Constructor Details
-
V1NetworkPolicySpecFluentImpl
public V1NetworkPolicySpecFluentImpl() -
V1NetworkPolicySpecFluentImpl
public V1NetworkPolicySpecFluentImpl(io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance)
-
-
Method Details
-
addToEgress
public A addToEgress(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) - Specified by:
addToEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
setToEgress
public A setToEgress(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) - Specified by:
setToEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addToEgress
- Specified by:
addToEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addAllToEgress
public A addAllToEgress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> items) - Specified by:
addAllToEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
removeFromEgress
- Specified by:
removeFromEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
removeAllFromEgress
public A removeAllFromEgress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule> items) - Specified by:
removeAllFromEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
removeMatchingFromEgress
- Specified by:
removeMatchingFromEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
getEgress
Deprecated.This method has been deprecated, please use method buildEgress instead.- Specified by:
getEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
- Returns:
- The buildable object.
-
buildEgress
- Specified by:
buildEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
buildEgress
- Specified by:
buildEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
buildFirstEgress
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildFirstEgress()- Specified by:
buildFirstEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
buildLastEgress
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildLastEgress()- Specified by:
buildLastEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
buildMatchingEgress
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildMatchingEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate) - Specified by:
buildMatchingEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
hasMatchingEgress
- Specified by:
hasMatchingEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withEgress
- Specified by:
withEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withEgress
- Specified by:
withEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
hasEgress
- Specified by:
hasEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addNewEgress
- Specified by:
addNewEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addNewEgressLike
public V1NetworkPolicySpecFluent.EgressNested<A> addNewEgressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) - Specified by:
addNewEgressLike
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
setNewEgressLike
public V1NetworkPolicySpecFluent.EgressNested<A> setNewEgressLike(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) - Specified by:
setNewEgressLike
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editEgress
- Specified by:
editEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editFirstEgress
- Specified by:
editFirstEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editLastEgress
- Specified by:
editLastEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editMatchingEgress
public V1NetworkPolicySpecFluent.EgressNested<A> editMatchingEgress(Predicate<V1NetworkPolicyEgressRuleBuilder> predicate) - Specified by:
editMatchingEgress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addToIngress
public A addToIngress(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) - Specified by:
addToIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
setToIngress
public A setToIngress(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) - Specified by:
setToIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addToIngress
- Specified by:
addToIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addAllToIngress
public A addAllToIngress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> items) - Specified by:
addAllToIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
removeFromIngress
- Specified by:
removeFromIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
removeAllFromIngress
public A removeAllFromIngress(Collection<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> items) - Specified by:
removeAllFromIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
removeMatchingFromIngress
- Specified by:
removeMatchingFromIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
getIngress
@Deprecated public List<io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule> getIngress()Deprecated.This method has been deprecated, please use method buildIngress instead.- Specified by:
getIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
- Returns:
- The buildable object.
-
buildIngress
- Specified by:
buildIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
buildIngress
- Specified by:
buildIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
buildFirstIngress
public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildFirstIngress()- Specified by:
buildFirstIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
buildLastIngress
public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildLastIngress()- Specified by:
buildLastIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
buildMatchingIngress
public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildMatchingIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate) - Specified by:
buildMatchingIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
hasMatchingIngress
- Specified by:
hasMatchingIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withIngress
- Specified by:
withIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withIngress
- Specified by:
withIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
hasIngress
- Specified by:
hasIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addNewIngress
- Specified by:
addNewIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addNewIngressLike
public V1NetworkPolicySpecFluent.IngressNested<A> addNewIngressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) - Specified by:
addNewIngressLike
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
setNewIngressLike
public V1NetworkPolicySpecFluent.IngressNested<A> setNewIngressLike(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) - Specified by:
setNewIngressLike
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editIngress
- Specified by:
editIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editFirstIngress
- Specified by:
editFirstIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editLastIngress
- Specified by:
editLastIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editMatchingIngress
public V1NetworkPolicySpecFluent.IngressNested<A> editMatchingIngress(Predicate<V1NetworkPolicyIngressRuleBuilder> predicate) - Specified by:
editMatchingIngress
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
getPodSelector
Deprecated.This method has been deprecated, please use method buildPodSelector instead.- Specified by:
getPodSelector
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
- Returns:
- The buildable object.
-
buildPodSelector
public io.kubernetes.client.openapi.models.V1LabelSelector buildPodSelector()- Specified by:
buildPodSelector
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withPodSelector
- Specified by:
withPodSelector
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
hasPodSelector
- Specified by:
hasPodSelector
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withNewPodSelector
- Specified by:
withNewPodSelector
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withNewPodSelectorLike
public V1NetworkPolicySpecFluent.PodSelectorNested<A> withNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) - Specified by:
withNewPodSelectorLike
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editPodSelector
- Specified by:
editPodSelector
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editOrNewPodSelector
- Specified by:
editOrNewPodSelector
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
editOrNewPodSelectorLike
public V1NetworkPolicySpecFluent.PodSelectorNested<A> editOrNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) - Specified by:
editOrNewPodSelectorLike
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addToPolicyTypes
- Specified by:
addToPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
setToPolicyTypes
- Specified by:
setToPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addToPolicyTypes
- Specified by:
addToPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
addAllToPolicyTypes
- Specified by:
addAllToPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
removeFromPolicyTypes
- Specified by:
removeFromPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
removeAllFromPolicyTypes
- Specified by:
removeAllFromPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
getPolicyTypes
- Specified by:
getPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
getPolicyType
- Specified by:
getPolicyType
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
getFirstPolicyType
- Specified by:
getFirstPolicyType
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
getLastPolicyType
- Specified by:
getLastPolicyType
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
getMatchingPolicyType
- Specified by:
getMatchingPolicyType
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
hasMatchingPolicyType
- Specified by:
hasMatchingPolicyType
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withPolicyTypes
- Specified by:
withPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
withPolicyTypes
- Specified by:
withPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
hasPolicyTypes
- Specified by:
hasPolicyTypes
in interfaceV1NetworkPolicySpecFluent<A extends V1NetworkPolicySpecFluent<A>>
-
equals
- Overrides:
equals
in classBaseFluent<A extends V1NetworkPolicySpecFluent<A>>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseFluent<A extends V1NetworkPolicySpecFluent<A>>
-
toString
-