Class NetworkPolicyEgressRule
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.extensions.v1beta1.NetworkPolicyEgressRule
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class NetworkPolicyEgressRule extends java.lang.Object implements com.marcnuri.yakc.model.Model
DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkPolicyEgressRule.Builder
-
Constructor Summary
Constructors Constructor Description NetworkPolicyEgressRule()
NetworkPolicyEgressRule(java.util.List<NetworkPolicyPort> ports, java.util.List<NetworkPolicyPeer> to)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetworkPolicyEgressRule.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<NetworkPolicyPort>
getPorts()
List of destination ports for outgoing traffic.java.util.List<NetworkPolicyPeer>
getTo()
List of destinations for outgoing traffic of pods selected for this rule.int
hashCode()
void
setPorts(java.util.List<NetworkPolicyPort> ports)
List of destination ports for outgoing traffic.void
setTo(java.util.List<NetworkPolicyPeer> to)
List of destinations for outgoing traffic of pods selected for this rule.NetworkPolicyEgressRule.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
NetworkPolicyEgressRule
public NetworkPolicyEgressRule(java.util.List<NetworkPolicyPort> ports, java.util.List<NetworkPolicyPeer> to)
-
NetworkPolicyEgressRule
public NetworkPolicyEgressRule()
-
-
Method Detail
-
builder
public static NetworkPolicyEgressRule.Builder builder()
-
toBuilder
public NetworkPolicyEgressRule.Builder toBuilder()
-
getPorts
public java.util.List<NetworkPolicyPort> getPorts()
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
-
getTo
public java.util.List<NetworkPolicyPeer> getTo()
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.
-
setPorts
public void setPorts(java.util.List<NetworkPolicyPort> ports)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
-
setTo
public void setTo(java.util.List<NetworkPolicyPeer> to)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-