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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1IPBlock extends Object
IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") 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.
  • Field Details

  • Constructor Details

    • V1IPBlock

      public V1IPBlock(String cidr)
  • Method Details

    • getCidr

      public String getCidr()
      cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"
      Returns:
      the cidr property value
    • setCidr

      public void setCidr(String cidr)
      Set the cidr property value
      Parameters:
      cidr - property value to set
    • cidr

      public V1IPBlock cidr(String cidr)
      Set cidr in a chainable fashion.
      Returns:
      The same instance of V1IPBlock for chaining.
    • getExcept

      public List<@NotNull String> getExcept()
      except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range
      Returns:
      the except property value
    • setExcept

      public void setExcept(List<@NotNull String> except)
      Set the except property value
      Parameters:
      except - property value to set
    • except

      public V1IPBlock except(List<@NotNull String> except)
      Set except in a chainable fashion.
      Returns:
      The same instance of V1IPBlock for chaining.
    • addexceptItem

      public V1IPBlock addexceptItem(String exceptItem)
      Add an item to the except property in a chainable fashion.
      Returns:
      The same instance of V1IPBlock 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