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