Class V1alpha2PodGroupTemplate

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1alpha2PodGroupTemplate extends Object
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
  • Field Details

  • Constructor Details

    • V1alpha2PodGroupTemplate

      public V1alpha2PodGroupTemplate()
  • Method Details

    • disruptionMode

      public V1alpha2PodGroupTemplate disruptionMode(@Nullable String disruptionMode)
    • getDisruptionMode

      @Nullable public String getDisruptionMode()
      DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      disruptionMode
    • setDisruptionMode

      public void setDisruptionMode(@Nullable String disruptionMode)
    • name

      public V1alpha2PodGroupTemplate name(@Nonnull String name)
    • getName

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

      public void setName(@Nonnull String name)
    • priority

      public V1alpha2PodGroupTemplate priority(@Nullable Integer priority)
    • getPriority

      @Nullable public Integer getPriority()
      Priority is the value of priority of pod groups created from this template. 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 available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      priority
    • setPriority

      public void setPriority(@Nullable Integer priority)
    • priorityClassName

      public V1alpha2PodGroupTemplate priorityClassName(@Nullable String priorityClassName)
    • getPriorityClassName

      @Nullable public String getPriorityClassName()
      PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled.
      Returns:
      priorityClassName
    • setPriorityClassName

      public void setPriorityClassName(@Nullable String priorityClassName)
    • resourceClaims

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

      public V1alpha2PodGroupTemplate 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 V1alpha2PodGroupTemplate schedulingConstraints(@Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints)
    • getSchedulingConstraints

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

      public void setSchedulingConstraints(@Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints)
    • schedulingPolicy

      public V1alpha2PodGroupTemplate 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 V1alpha2PodGroupTemplate
    • fromJson

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

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