Class V1alpha1ServiceCIDRSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1alpha1ServiceCIDRSpec extends Object
ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.
  • Field Details

  • Constructor Details

    • V1alpha1ServiceCIDRSpec

      public V1alpha1ServiceCIDRSpec()
  • Method Details

    • cidrs

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

      public V1alpha1ServiceCIDRSpec 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
    • 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 V1alpha1ServiceCIDRSpec
    • fromJson

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

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