Class V1VolumeResourceRequirements

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1VolumeResourceRequirements extends Object
VolumeResourceRequirements describes the storage resource requirements for a volume.
  • Field Details

  • Constructor Details

    • V1VolumeResourceRequirements

      public V1VolumeResourceRequirements()
  • Method Details

    • limits

    • putLimitsItem

      public V1VolumeResourceRequirements putLimitsItem(String key, Quantity limitsItem)
    • getLimits

      @Nullable public Map<String,Quantity> getLimits()
      Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
      Returns:
      limits
    • setLimits

      public void setLimits(Map<String,Quantity> limits)
    • requests

      public V1VolumeResourceRequirements requests(Map<String,Quantity> requests)
    • putRequestsItem

      public V1VolumeResourceRequirements putRequestsItem(String key, Quantity requestsItem)
    • getRequests

      @Nullable public Map<String,Quantity> getRequests()
      Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
      Returns:
      requests
    • setRequests

      public void setRequests(Map<String,Quantity> requests)
    • 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 V1VolumeResourceRequirements
    • fromJson

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

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