Class CapacityRange

java.lang.Object
io.github.alersrt.pod4j.openapi.model.CapacityRange

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class CapacityRange extends Object
CapacityRange describes the minimum and maximum capacity a volume should be created with
  • Field Details

  • Constructor Details

    • CapacityRange

      public CapacityRange()
  • Method Details

    • limitBytes

      public CapacityRange limitBytes(Long limitBytes)
    • getLimitBytes

      @Nullable public Long getLimitBytes()
      LimitBytes specifies that a volume must not be bigger than this. The value of 0 indicates an unspecified maximum
      Returns:
      limitBytes
    • setLimitBytes

      public void setLimitBytes(Long limitBytes)
    • requiredBytes

      public CapacityRange requiredBytes(Long requiredBytes)
    • getRequiredBytes

      @Nullable public Long getRequiredBytes()
      RequiredBytes specifies that a volume must be at least this big. The value of 0 indicates an unspecified minimum.
      Returns:
      requiredBytes
    • setRequiredBytes

      public void setRequiredBytes(Long requiredBytes)
    • 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 CapacityRange
    • fromJson

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

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