Package net.stickycode.kuuty.model.v18
Class IoK8sApiNetworkingV1NetworkPolicyIngressRule
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiNetworkingV1NetworkPolicyIngressRule
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiNetworkingV1NetworkPolicyIngressRule extends Object
NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FROMstatic StringJSON_PROPERTY_PORTS
-
Constructor Summary
Constructors Constructor Description IoK8sApiNetworkingV1NetworkPolicyIngressRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiNetworkingV1NetworkPolicyIngressRuleaddFromItem(IoK8sApiNetworkingV1NetworkPolicyPeer fromItem)IoK8sApiNetworkingV1NetworkPolicyIngressRuleaddPortsItem(IoK8sApiNetworkingV1NetworkPolicyPort portsItem)booleanequals(Object o)IoK8sApiNetworkingV1NetworkPolicyIngressRulefrom(List<IoK8sApiNetworkingV1NetworkPolicyPeer> from)List<IoK8sApiNetworkingV1NetworkPolicyPeer>getFrom()List of sources which should be able to access the pods selected for this rule.List<IoK8sApiNetworkingV1NetworkPolicyPort>getPorts()List of ports which should be made accessible on the pods selected for this rule.inthashCode()IoK8sApiNetworkingV1NetworkPolicyIngressRuleports(List<IoK8sApiNetworkingV1NetworkPolicyPort> ports)voidsetFrom(List<IoK8sApiNetworkingV1NetworkPolicyPeer> from)voidsetPorts(List<IoK8sApiNetworkingV1NetworkPolicyPort> ports)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_FROM
public static final String JSON_PROPERTY_FROM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORTS
public static final String JSON_PROPERTY_PORTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
from
public IoK8sApiNetworkingV1NetworkPolicyIngressRule from(List<IoK8sApiNetworkingV1NetworkPolicyPeer> from)
-
addFromItem
public IoK8sApiNetworkingV1NetworkPolicyIngressRule addFromItem(IoK8sApiNetworkingV1NetworkPolicyPeer fromItem)
-
getFrom
@Nullable public List<IoK8sApiNetworkingV1NetworkPolicyPeer> getFrom()
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list.- Returns:
- from
-
setFrom
public void setFrom(List<IoK8sApiNetworkingV1NetworkPolicyPeer> from)
-
ports
public IoK8sApiNetworkingV1NetworkPolicyIngressRule ports(List<IoK8sApiNetworkingV1NetworkPolicyPort> ports)
-
addPortsItem
public IoK8sApiNetworkingV1NetworkPolicyIngressRule addPortsItem(IoK8sApiNetworkingV1NetworkPolicyPort portsItem)
-
getPorts
@Nullable public List<IoK8sApiNetworkingV1NetworkPolicyPort> getPorts()
List of ports which should be made accessible on the pods selected for this rule. 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.- Returns:
- ports
-
setPorts
public void setPorts(List<IoK8sApiNetworkingV1NetworkPolicyPort> ports)
-
-