Class NetAddress
java.lang.Object
io.github.alersrt.pod4j.openapi.model.NetAddress
@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 NetAddress
extends Object
NetAddress
-
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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
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 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
-
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
-
toJson
Convert an instance of NetAddress to an JSON string- Returns:
- JSON string
-