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.
  • Field Details

  • Constructor Details

    • V1alpha1WorkloadSpec

      public V1alpha1WorkloadSpec()
  • Method Details

    • controllerRef

      public V1alpha1WorkloadSpec controllerRef(@Nullable V1alpha1TypedLocalObjectReference controllerRef)
    • getControllerRef

      @Nullable public V1alpha1TypedLocalObjectReference getControllerRef()
      Get controllerRef
      Returns:
      controllerRef
    • setControllerRef

      public void setControllerRef(@Nullable V1alpha1TypedLocalObjectReference controllerRef)
    • podGroups

      public V1alpha1WorkloadSpec podGroups(@Nonnull List<V1alpha1PodGroup> podGroups)
    • addPodGroupsItem

      public V1alpha1WorkloadSpec addPodGroupsItem(V1alpha1PodGroup podGroupsItem)
    • getPodGroups

      @Nonnull public List<V1alpha1PodGroup> 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

      public void setPodGroups(@Nonnull List<V1alpha1PodGroup> podGroups)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static V1alpha1WorkloadSpec fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1alpha1WorkloadSpec to an JSON string
      Returns:
      JSON string