Class NetInterface
java.lang.Object
io.github.alersrt.pod4j.openapi.model.NetInterface
@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 NetInterface
extends Object
NetInterface
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubnetsItem(NetAddress subnetsItem) booleanstatic NetInterfaceCreate an instance of NetInterface given an JSON stringMacAddress for this Interface.@Valid List<@Valid NetAddress>Subnets list of assigned subnets with their gateway.inthashCode()macAddress(String macAddress) voidsetMacAddress(String macAddress) voidsetSubnets(List<@Valid NetAddress> subnets) subnets(List<@Valid NetAddress> subnets) toJson()Convert an instance of NetInterface 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_MAC_ADDRESS
- See Also:
-
SERIALIZED_NAME_SUBNETS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NetInterface
public NetInterface()
-
-
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 NetInterface
-
fromJson
Create an instance of NetInterface given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NetInterface
- Throws:
IOException- if the JSON string is invalid with respect to NetInterface
-
macAddress
-
getMacAddress
MacAddress for this Interface.- Returns:
- macAddress
-
setMacAddress
-
subnets
-
addSubnetsItem
-
getSubnets
Subnets list of assigned subnets with their gateway.- Returns:
- subnets
-
setSubnets
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of NetInterface to an JSON string- Returns:
- JSON string
-