Class WeightDevice
java.lang.Object
io.github.alersrt.pod4j.openapi.model.WeightDevice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class WeightDevice
extends Object
WeightDevice is a structure that holds device:weight pair
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic WeightDeviceCreate an instance of WeightDevice given an JSON stringgetPath()Get pathGet weightinthashCode()voidvoidtoJson()Convert an instance of WeightDevice 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_PATH
- See Also:
-
SERIALIZED_NAME_WEIGHT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
WeightDevice
public WeightDevice()
-
-
Method Details
-
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 WeightDevice
-
fromJson
Create an instance of WeightDevice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WeightDevice
- Throws:
IOException- if the JSON string is invalid with respect to WeightDevice
-
path
-
getPath
Get path- Returns:
- path
-
setPath
-
weight
-
getWeight
Get weight- Returns:
- weight
-
setWeight
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of WeightDevice to an JSON string- Returns:
- JSON string
-