Class V1alpha2GangSchedulingPolicy

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1alpha2GangSchedulingPolicy extends Object
GangSchedulingPolicy defines the parameters for gang scheduling.
  • Field Details

  • Constructor Details

    • V1alpha2GangSchedulingPolicy

      public V1alpha2GangSchedulingPolicy()
  • Method Details

    • minCount

      public V1alpha2GangSchedulingPolicy minCount(@Nonnull Integer minCount)
    • getMinCount

      @Nonnull public Integer getMinCount()
      MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.
      Returns:
      minCount
    • setMinCount

      public void setMinCount(@Nonnull Integer minCount)
    • 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 V1alpha2GangSchedulingPolicy
    • fromJson

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

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