Class V1WorkloadReference
java.lang.Object
io.kubernetes.client.openapi.models.V1WorkloadReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-01-21T21:30:13.305152Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1WorkloadReference
extends Object
WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1WorkloadReferenceCreate an instance of V1WorkloadReference given an JSON stringgetName()Name defines the name of the Workload object this Pod belongs to.PodGroup is the name of the PodGroup within the Workload that this Pod belongs to.PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs.inthashCode()podGroupReplicaKey(String podGroupReplicaKey) voidvoidsetPodGroup(String podGroup) voidsetPodGroupReplicaKey(String podGroupReplicaKey) toJson()Convert an instance of V1WorkloadReference 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_NAME
- See Also:
-
SERIALIZED_NAME_POD_GROUP
- See Also:
-
SERIALIZED_NAME_POD_GROUP_REPLICA_KEY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1WorkloadReference
public V1WorkloadReference()
-
-
Method Details
-
name
-
getName
Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.- Returns:
- name
-
setName
-
podGroup
-
getPodGroup
PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.- Returns:
- podGroup
-
setPodGroup
-
podGroupReplicaKey
-
getPodGroupReplicaKey
PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.- Returns:
- podGroupReplicaKey
-
setPodGroupReplicaKey
-
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 V1WorkloadReference
-
fromJson
Create an instance of V1WorkloadReference given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1WorkloadReference
- Throws:
IOException- if the JSON string is invalid with respect to V1WorkloadReference
-
toJson
Convert an instance of V1WorkloadReference to an JSON string- Returns:
- JSON string
-