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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CapacityRangeCreate an instance of CapacityRange given an JSON stringLimitBytes specifies that a volume must not be bigger than this.RequiredBytes specifies that a volume must be at least this big.inthashCode()limitBytes(Long limitBytes) requiredBytes(Long requiredBytes) voidsetLimitBytes(Long limitBytes) voidsetRequiredBytes(Long requiredBytes) toJson()Convert an instance of CapacityRange to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LIMIT_BYTES
- See Also:
-
SERIALIZED_NAME_REQUIRED_BYTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CapacityRange
public CapacityRange()
-
-
Method Details
-
limitBytes
-
getLimitBytes
LimitBytes specifies that a volume must not be bigger than this. The value of 0 indicates an unspecified maximum- Returns:
- limitBytes
-
setLimitBytes
-
requiredBytes
-
getRequiredBytes
RequiredBytes specifies that a volume must be at least this big. The value of 0 indicates an unspecified minimum.- Returns:
- requiredBytes
-
setRequiredBytes
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of CapacityRange to an JSON string- Returns:
- JSON string
-