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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCidrsItem
(String cidrsItem) boolean
static V1beta1ServiceCIDRSpec
Create an instance of V1beta1ServiceCIDRSpec given an JSON stringgetCidrs()
CIDRs defines the IP blocks in CIDR notation (e.gint
hashCode()
void
toJson()
Convert an instance of V1beta1ServiceCIDRSpec to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CIDRS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta1ServiceCIDRSpec
public V1beta1ServiceCIDRSpec()
-
-
Method Details
-
cidrs
-
addCidrsItem
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of V1beta1ServiceCIDRSpec to an JSON string- Returns:
- JSON string
-