Class V1ResourceQuotaSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1ResourceQuotaSpec extends Object
ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
  • Field Details

  • Constructor Details

    • V1ResourceQuotaSpec

      public V1ResourceQuotaSpec()
  • Method Details

    • hard

      public V1ResourceQuotaSpec hard(Map<String,Quantity> hard)
    • putHardItem

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

      @Nullable public Map<String,Quantity> getHard()
      hard is the set of desired 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)
    • scopeSelector

      public V1ResourceQuotaSpec scopeSelector(V1ScopeSelector scopeSelector)
    • getScopeSelector

      @Nullable public V1ScopeSelector getScopeSelector()
      Get scopeSelector
      Returns:
      scopeSelector
    • setScopeSelector

      public void setScopeSelector(V1ScopeSelector scopeSelector)
    • scopes

      public V1ResourceQuotaSpec scopes(List<String> scopes)
    • addScopesItem

      public V1ResourceQuotaSpec addScopesItem(String scopesItem)
    • getScopes

      @Nullable public List<String> getScopes()
      A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.
      Returns:
      scopes
    • setScopes

      public void setScopes(List<String> scopes)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1ResourceQuotaSpec
    • fromJson

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

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