Class WeightDevice
java.lang.Object
io.github.alersrt.pod4j.openapi.model.WeightDevice
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class WeightDevice
extends Object
implements Serializable
WeightDevice is a structure that holds device:weight pair
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
path
-
getPath
Get path- Returns:
- path
-
setPath
-
weight
-
getWeight
Get weight- Returns:
- weight
-
setWeight
-
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 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
-
toJson
Convert an instance of WeightDevice to an JSON string- Returns:
- JSON string
-