Class CapacityRange
java.lang.Object
io.github.alersrt.pod4j.openapi.model.CapacityRange
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CapacityRange
extends Object
implements Serializable
CapacityRange describes the minimum and maximum capacity a volume should be created with
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
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 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
-