Class V1alpha2TopologyConstraint
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2TopologyConstraint
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1alpha2TopologyConstraint
extends Object
TopologyConstraint defines a topology constraint for a PodGroup.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1alpha2TopologyConstraintCreate an instance of V1alpha2TopologyConstraint given an JSON stringgetKey()Key specifies the key of the node label representing the topology domain.inthashCode()voidtoJson()Convert an instance of V1alpha2TopologyConstraint to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_KEY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2TopologyConstraint
public V1alpha2TopologyConstraint()
-
-
Method Details
-
key
-
getKey
Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"- Returns:
- key
-
setKey
-
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 V1alpha2TopologyConstraint
-
fromJson
Create an instance of V1alpha2TopologyConstraint given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1alpha2TopologyConstraint
- Throws:
IOException- if the JSON string is invalid with respect to V1alpha2TopologyConstraint
-
toJson
Convert an instance of V1alpha2TopologyConstraint to an JSON string- Returns:
- JSON string
-