Class IPBlock

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class IPBlock
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  IPBlock.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      IPBlock()  
      IPBlock​(@NonNull java.lang.String cidr, java.util.List<java.lang.String> except)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static IPBlock.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull java.lang.String getCidr()
      CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
      java.util.List<java.lang.String> getExcept()
      Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
      int hashCode()  
      void setCidr​(@NonNull java.lang.String cidr)
      CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
      void setExcept​(java.util.List<java.lang.String> except)
      Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
      IPBlock.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IPBlock

        public IPBlock​(@NonNull
                       @NonNull java.lang.String cidr,
                       java.util.List<java.lang.String> except)
      • IPBlock

        public IPBlock()
    • Method Detail

      • getCidr

        @NonNull
        public @NonNull java.lang.String getCidr()
        CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
      • getExcept

        public java.util.List<java.lang.String> getExcept()
        Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
      • setCidr

        public void setCidr​(@NonNull
                            @NonNull java.lang.String cidr)
        CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
      • setExcept

        public void setExcept​(java.util.List<java.lang.String> except)
        Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object