Class V1alpha1ClusterCIDRSpec

java.lang.Object
io.kubernetes.client.openapi.models.V1alpha1ClusterCIDRSpec

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1alpha1ClusterCIDRSpec extends Object
ClusterCIDRSpec defines the desired state of ClusterCIDR.
  • Field Details

  • Constructor Details

    • V1alpha1ClusterCIDRSpec

      public V1alpha1ClusterCIDRSpec()
  • Method Details

    • ipv4

      public V1alpha1ClusterCIDRSpec ipv4(String ipv4)
    • getIpv4

      @Nullable public String getIpv4()
      ipv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of ipv4 and ipv6 must be specified. This field is immutable.
      Returns:
      ipv4
    • setIpv4

      public void setIpv4(String ipv4)
    • ipv6

      public V1alpha1ClusterCIDRSpec ipv6(String ipv6)
    • getIpv6

      @Nullable public String getIpv6()
      ipv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of ipv4 and ipv6 must be specified. This field is immutable.
      Returns:
      ipv6
    • setIpv6

      public void setIpv6(String ipv6)
    • nodeSelector

      public V1alpha1ClusterCIDRSpec nodeSelector(V1NodeSelector nodeSelector)
    • getNodeSelector

      @Nullable public V1NodeSelector getNodeSelector()
      Get nodeSelector
      Returns:
      nodeSelector
    • setNodeSelector

      public void setNodeSelector(V1NodeSelector nodeSelector)
    • perNodeHostBits

      public V1alpha1ClusterCIDRSpec perNodeHostBits(Integer perNodeHostBits)
    • getPerNodeHostBits

      @Nonnull public Integer getPerNodeHostBits()
      perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable.
      Returns:
      perNodeHostBits
    • setPerNodeHostBits

      public void setPerNodeHostBits(Integer perNodeHostBits)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1alpha1ClusterCIDRSpec
    • fromJson

      public static V1alpha1ClusterCIDRSpec fromJson(String jsonString) throws IOException
      Create an instance of V1alpha1ClusterCIDRSpec given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1alpha1ClusterCIDRSpec
      Throws:
      IOException - if the JSON string is invalid with respect to V1alpha1ClusterCIDRSpec
    • toJson

      public String toJson()
      Convert an instance of V1alpha1ClusterCIDRSpec to an JSON string
      Returns:
      JSON string