Class V1VolumeNodeResources

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1VolumeNodeResources extends Object
VolumeNodeResources is a set of resource limits for scheduling of volumes.
  • Field Details

  • Constructor Details

    • V1VolumeNodeResources

      public V1VolumeNodeResources()
  • Method Details

    • count

      public V1VolumeNodeResources count(Integer count)
    • getCount

      @Nullable public Integer getCount()
      count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.
      Returns:
      count
    • setCount

      public void setCount(Integer count)
    • 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 V1VolumeNodeResources
    • fromJson

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

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