Class V1alpha1WorkloadSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha1WorkloadSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-01-21T21:30:13.305152Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1alpha1WorkloadSpec
extends Object
WorkloadSpec defines the desired state of a Workload.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPodGroupsItem(V1alpha1PodGroup podGroupsItem) controllerRef(V1alpha1TypedLocalObjectReference controllerRef) booleanstatic V1alpha1WorkloadSpecCreate an instance of V1alpha1WorkloadSpec given an JSON stringGet controllerRefPodGroups is the list of pod groups that make up the Workload.inthashCode()podGroups(List<V1alpha1PodGroup> podGroups) voidsetControllerRef(V1alpha1TypedLocalObjectReference controllerRef) voidsetPodGroups(List<V1alpha1PodGroup> podGroups) toJson()Convert an instance of V1alpha1WorkloadSpec 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_CONTROLLER_REF
- See Also:
-
SERIALIZED_NAME_POD_GROUPS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha1WorkloadSpec
public V1alpha1WorkloadSpec()
-
-
Method Details
-
controllerRef
public V1alpha1WorkloadSpec controllerRef(@Nullable V1alpha1TypedLocalObjectReference controllerRef) -
getControllerRef
Get controllerRef- Returns:
- controllerRef
-
setControllerRef
-
podGroups
-
addPodGroupsItem
-
getPodGroups
PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable.- Returns:
- podGroups
-
setPodGroups
-
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 V1alpha1WorkloadSpec
-
fromJson
Create an instance of V1alpha1WorkloadSpec given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1alpha1WorkloadSpec
- Throws:
IOException- if the JSON string is invalid with respect to V1alpha1WorkloadSpec
-
toJson
Convert an instance of V1alpha1WorkloadSpec to an JSON string- Returns:
- JSON string
-