Class IPNet
java.lang.Object
io.github.alersrt.pod4j.openapi.model.IPNet
@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 IPNet
extends Object
IPNet
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMaskItem(Integer maskItem) booleanstatic IPNetCreate an instance of IPNet given an JSON stringgetIP()Get IPgetMask()See type [IPNet] and func [ParseCIDR] for details.inthashCode()voidvoidtoJson()Convert an instance of IPNet 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_I_P
- See Also:
-
SERIALIZED_NAME_MASK
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
IPNet
public IPNet()
-
-
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 IPNet
-
fromJson
Create an instance of IPNet given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IPNet
- Throws:
IOException- if the JSON string is invalid with respect to IPNet
-
IP
-
getIP
Get IP- Returns:
- IP
-
setIP
-
mask
-
addMaskItem
-
getMask
See type [IPNet] and func [ParseCIDR] for details.- Returns:
- mask
-
setMask
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of IPNet to an JSON string- Returns:
- JSON string
-