Class Address
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Address
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Address
extends Object
implements Serializable
Address
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AddressCreate an instance of Address given an JSON stringgetAddr()Get addrGet prefixLengthinthashCode()prefixLength(Long prefixLength) voidvoidsetPrefixLength(Long prefixLength) toJson()Convert an instance of Address 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_ADDR
- See Also:
-
SERIALIZED_NAME_PREFIX_LENGTH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Address
public Address()
-
-
Method Details
-
addr
-
getAddr
Get addr- Returns:
- addr
-
setAddr
-
prefixLength
-
getPrefixLength
Get prefixLength- Returns:
- prefixLength
-
setPrefixLength
-
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 Address
-
fromJson
Create an instance of Address given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Address
- Throws:
IOException- if the JSON string is invalid with respect to Address
-
toJson
Convert an instance of Address to an JSON string- Returns:
- JSON string
-