Class V1alpha2PodGroupSchedulingConstraints
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingConstraints
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1alpha2PodGroupSchedulingConstraints
extends Object
PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTopologyItem(V1alpha2TopologyConstraint topologyItem) booleanCreate an instance of V1alpha2PodGroupSchedulingConstraints given an JSON stringTopology defines the topology constraints for the pod group.inthashCode()voidsetTopology(List<V1alpha2TopologyConstraint> topology) toJson()Convert an instance of V1alpha2PodGroupSchedulingConstraints to an JSON stringtopology(List<V1alpha2TopologyConstraint> topology) toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TOPOLOGY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2PodGroupSchedulingConstraints
public V1alpha2PodGroupSchedulingConstraints()
-
-
Method Details
-
topology
public V1alpha2PodGroupSchedulingConstraints topology(@Nullable List<V1alpha2TopologyConstraint> topology) -
addTopologyItem
public V1alpha2PodGroupSchedulingConstraints addTopologyItem(V1alpha2TopologyConstraint topologyItem) -
getTopology
Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.- Returns:
- topology
-
setTopology
-
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 V1alpha2PodGroupSchedulingConstraints
-
fromJson
Create an instance of V1alpha2PodGroupSchedulingConstraints given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1alpha2PodGroupSchedulingConstraints
- Throws:
IOException- if the JSON string is invalid with respect to V1alpha2PodGroupSchedulingConstraints
-
toJson
Convert an instance of V1alpha2PodGroupSchedulingConstraints to an JSON string- Returns:
- JSON string
-