Interface V1Networking.NetworkPolicyEgressRuleOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
V1Networking.NetworkPolicyEgressRule, V1Networking.NetworkPolicyEgressRule.Builder
Enclosing class:
V1Networking

public static interface V1Networking.NetworkPolicyEgressRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getPortsList

       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
    • getPorts

      V1Networking.NetworkPolicyPort getPorts(int index)
       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
    • getPortsCount

      int getPortsCount()
       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
    • getPortsOrBuilderList

      List<? extends V1Networking.NetworkPolicyPortOrBuilder> getPortsOrBuilderList()
       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
    • getPortsOrBuilder

      V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
    • getToList

       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
    • 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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
    • getToCount

      int getToCount()
       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
    • getToOrBuilderList

      List<? extends V1Networking.NetworkPolicyPeerOrBuilder> getToOrBuilderList()
       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
    • getToOrBuilder

      V1Networking.NetworkPolicyPeerOrBuilder getToOrBuilder(int index)
       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.
       +optional
       
      repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;