Class NetInterface

java.lang.Object
io.github.alersrt.pod4j.openapi.model.NetInterface
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class NetInterface extends Object implements Serializable
NetInterface
See Also:
  • Field Details

  • Constructor Details

    • NetInterface

      public NetInterface()
  • Method Details

    • macAddress

      public NetInterface macAddress(String macAddress)
    • getMacAddress

      @Nullable public String getMacAddress()
      MacAddress for this Interface.
      Returns:
      macAddress
    • setMacAddress

      public void setMacAddress(String macAddress)
    • subnets

      public NetInterface subnets(List<NetAddress> subnets)
    • addSubnetsItem

      public NetInterface addSubnetsItem(NetAddress subnetsItem)
    • getSubnets

      @Nullable @Valid public @Valid List<NetAddress> getSubnets()
      Subnets list of assigned subnets with their gateway.
      Returns:
      subnets
    • setSubnets

      public void setSubnets(List<NetAddress> subnets)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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 NetInterface
    • fromJson

      public static NetInterface fromJson(String jsonString) throws IOException
      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
    • toJson

      public String toJson()
      Convert an instance of NetInterface to an JSON string
      Returns:
      JSON string