Class V1alpha1PodGroup

java.lang.Object
io.kubernetes.client.openapi.models.V1alpha1PodGroup

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-01-21T21:30:13.305152Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1alpha1PodGroup extends Object
PodGroup represents a set of pods with a common scheduling policy.
  • Field Details

  • Constructor Details

    • V1alpha1PodGroup

      public V1alpha1PodGroup()
  • Method Details

    • name

      public V1alpha1PodGroup name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Name is a unique identifier for the PodGroup within the Workload. It must be a DNS label. This field is immutable.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • policy

      public V1alpha1PodGroup policy(@Nonnull V1alpha1PodGroupPolicy policy)
    • getPolicy

      @Nonnull public V1alpha1PodGroupPolicy getPolicy()
      Get policy
      Returns:
      policy
    • setPolicy

      public void setPolicy(@Nonnull V1alpha1PodGroupPolicy policy)
    • 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 V1alpha1PodGroup
    • fromJson

      public static V1alpha1PodGroup fromJson(String jsonString) throws IOException
      Create an instance of V1alpha1PodGroup given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1alpha1PodGroup
      Throws:
      IOException - if the JSON string is invalid with respect to V1alpha1PodGroup
    • toJson

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