Class NetAddress
java.lang.Object
io.github.alersrt.pod4j.openapi.model.NetAddress
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class NetAddress
extends Object
implements Serializable
NetAddress
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic NetAddressCreate an instance of NetAddress given an JSON stringGateway for the network.@Valid IPNetgetIpnet()Get ipnetinthashCode()voidsetGateway(String gateway) voidtoJson()Convert an instance of NetAddress 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_GATEWAY
- See Also:
-
SERIALIZED_NAME_IPNET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NetAddress
public NetAddress()
-
-
Method Details
-
gateway
-
getGateway
Gateway for the network. This can be empty if there is no gateway, e.g. internal network.- Returns:
- gateway
-
setGateway
-
ipnet
-
getIpnet
Get ipnet- Returns:
- ipnet
-
setIpnet
-
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 NetAddress
-
fromJson
Create an instance of NetAddress given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NetAddress
- Throws:
IOException- if the JSON string is invalid with respect to NetAddress
-
toJson
Convert an instance of NetAddress to an JSON string- Returns:
- JSON string
-