Class V1NetworkPolicyPeer

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1NetworkPolicyPeer

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1NetworkPolicyPeer extends Object
NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed
  • Field Details

  • Constructor Details

    • V1NetworkPolicyPeer

      public V1NetworkPolicyPeer()
  • Method Details

    • getIpBlock

      public V1IPBlock getIpBlock()
      Returns:
      the ipBlock property value
    • setIpBlock

      public void setIpBlock(V1IPBlock ipBlock)
      Set the ipBlock property value
    • ipBlock

      public V1NetworkPolicyPeer ipBlock(V1IPBlock ipBlock)
      Set ipBlock in a chainable fashion.
      Returns:
      The same instance of V1NetworkPolicyPeer for chaining.
    • getNamespaceSelector

      public V1LabelSelector getNamespaceSelector()
      Returns:
      the namespaceSelector property value
    • setNamespaceSelector

      public void setNamespaceSelector(V1LabelSelector namespaceSelector)
      Set the namespaceSelector property value
    • namespaceSelector

      public V1NetworkPolicyPeer namespaceSelector(V1LabelSelector namespaceSelector)
      Set namespaceSelector in a chainable fashion.
      Returns:
      The same instance of V1NetworkPolicyPeer for chaining.
    • getPodSelector

      public V1LabelSelector getPodSelector()
      Returns:
      the podSelector property value
    • setPodSelector

      public void setPodSelector(V1LabelSelector podSelector)
      Set the podSelector property value
    • podSelector

      public V1NetworkPolicyPeer podSelector(V1LabelSelector podSelector)
      Set podSelector in a chainable fashion.
      Returns:
      The same instance of V1NetworkPolicyPeer for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object