Class V1alpha2PodGroupSchedulingPolicy

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1alpha2PodGroupSchedulingPolicy extends Object
PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set.
  • Field Details

  • Constructor Details

    • V1alpha2PodGroupSchedulingPolicy

      public V1alpha2PodGroupSchedulingPolicy()
  • Method Details

    • basic

      public V1alpha2PodGroupSchedulingPolicy basic(@Nullable Object basic)
    • getBasic

      @Nullable public Object getBasic()
      Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior.
      Returns:
      basic
    • setBasic

      public void setBasic(@Nullable Object basic)
    • gang

    • getGang

      @Nullable public V1alpha2GangSchedulingPolicy getGang()
      Get gang
      Returns:
      gang
    • setGang

      public void setGang(@Nullable V1alpha2GangSchedulingPolicy gang)
    • 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 V1alpha2PodGroupSchedulingPolicy
    • fromJson

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

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