Class V1beta1ServiceCIDRSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-10-04T19:37:38.574271Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1beta1ServiceCIDRSpec extends Object
ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.
  • Field Details

  • Constructor Details

    • V1beta1ServiceCIDRSpec

      public V1beta1ServiceCIDRSpec()
  • Method Details

    • cidrs

      public V1beta1ServiceCIDRSpec cidrs(List<String> cidrs)
    • addCidrsItem

      public V1beta1ServiceCIDRSpec addCidrsItem(String cidrsItem)
    • getCidrs

      @Nullable public List<String> getCidrs()
      CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.
      Returns:
      cidrs
    • setCidrs

      public void setCidrs(List<String> cidrs)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1beta1ServiceCIDRSpec
    • fromJson

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

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