Class V1PriorityLevelConfigurationSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1PriorityLevelConfigurationSpec extends Object
PriorityLevelConfigurationSpec specifies the configuration of a priority level.
  • Field Details

  • Constructor Details

    • V1PriorityLevelConfigurationSpec

      public V1PriorityLevelConfigurationSpec()
  • Method Details

    • exempt

    • getExempt

      @Nullable public V1ExemptPriorityLevelConfiguration getExempt()
      Get exempt
      Returns:
      exempt
    • setExempt

      public void setExempt(@Nullable V1ExemptPriorityLevelConfiguration exempt)
    • limited

    • getLimited

      @Nullable public V1LimitedPriorityLevelConfiguration getLimited()
      Get limited
      Returns:
      limited
    • setLimited

      public void setLimited(@Nullable V1LimitedPriorityLevelConfiguration limited)
    • type

      public V1PriorityLevelConfigurationSpec type(@Nonnull String type)
    • getType

      @Nonnull public String getType()
      `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.
      Returns:
      type
    • setType

      public void setType(@Nonnull String type)
    • 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 V1PriorityLevelConfigurationSpec
    • fromJson

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

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