Class V1alpha2PodGroupSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1alpha2PodGroupSpec extends Object
PodGroupSpec defines the desired state of a PodGroup.
  • Field Details

  • Constructor Details

    • V1alpha2PodGroupSpec

      public V1alpha2PodGroupSpec()
  • Method Details

    • disruptionMode

      public V1alpha2PodGroupSpec disruptionMode(@Nullable String disruptionMode)
    • getDisruptionMode

      @Nullable public String getDisruptionMode()
      DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      disruptionMode
    • setDisruptionMode

      public void setDisruptionMode(@Nullable String disruptionMode)
    • podGroupTemplateRef

      public V1alpha2PodGroupSpec podGroupTemplateRef(@Nullable V1alpha2PodGroupTemplateReference podGroupTemplateRef)
    • getPodGroupTemplateRef

      @Nullable public V1alpha2PodGroupTemplateReference getPodGroupTemplateRef()
      Get podGroupTemplateRef
      Returns:
      podGroupTemplateRef
    • setPodGroupTemplateRef

      public void setPodGroupTemplateRef(@Nullable V1alpha2PodGroupTemplateReference podGroupTemplateRef)
    • priority

      public V1alpha2PodGroupSpec priority(@Nullable Integer priority)
    • getPriority

      @Nullable public Integer getPriority()
      Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      priority
    • setPriority

      public void setPriority(@Nullable Integer priority)
    • priorityClassName

      public V1alpha2PodGroupSpec priorityClassName(@Nullable String priorityClassName)
    • getPriorityClassName

      @Nullable public String getPriorityClassName()
      PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      priorityClassName
    • setPriorityClassName

      public void setPriorityClassName(@Nullable String priorityClassName)
    • resourceClaims

      public V1alpha2PodGroupSpec resourceClaims(@Nullable List<V1alpha2PodGroupResourceClaim> resourceClaims)
    • addResourceClaimsItem

      public V1alpha2PodGroupSpec addResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem)
    • getResourceClaims

      @Nullable public List<V1alpha2PodGroupResourceClaim> getResourceClaims()
      ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.
      Returns:
      resourceClaims
    • setResourceClaims

      public void setResourceClaims(@Nullable List<V1alpha2PodGroupResourceClaim> resourceClaims)
    • schedulingConstraints

      public V1alpha2PodGroupSpec schedulingConstraints(@Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints)
    • getSchedulingConstraints

      @Nullable public V1alpha2PodGroupSchedulingConstraints getSchedulingConstraints()
      Get schedulingConstraints
      Returns:
      schedulingConstraints
    • setSchedulingConstraints

      public void setSchedulingConstraints(@Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints)
    • schedulingPolicy

      public V1alpha2PodGroupSpec schedulingPolicy(@Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy)
    • getSchedulingPolicy

      @Nonnull public V1alpha2PodGroupSchedulingPolicy getSchedulingPolicy()
      Get schedulingPolicy
      Returns:
      schedulingPolicy
    • setSchedulingPolicy

      public void setSchedulingPolicy(@Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy)
    • 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 V1alpha2PodGroupSpec
    • fromJson

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

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