Class V1ResourceQuotaStatus

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-10-04T19:37:38.574271Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1ResourceQuotaStatus extends Object
ResourceQuotaStatus defines the enforced hard limits and observed use.
  • Field Details

  • Constructor Details

    • V1ResourceQuotaStatus

      public V1ResourceQuotaStatus()
  • Method Details

    • hard

    • putHardItem

      public V1ResourceQuotaStatus putHardItem(String key, Quantity hardItem)
    • getHard

      @Nullable public Map<String,Quantity> getHard()
      Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
      Returns:
      hard
    • setHard

      public void setHard(Map<String,Quantity> hard)
    • used

    • putUsedItem

      public V1ResourceQuotaStatus putUsedItem(String key, Quantity usedItem)
    • getUsed

      @Nullable public Map<String,Quantity> getUsed()
      Used is the current observed total usage of the resource in the namespace.
      Returns:
      used
    • setUsed

      public void setUsed(Map<String,Quantity> used)
    • 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 V1ResourceQuotaStatus
    • fromJson

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

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