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
  • Field Details

  • Constructor Details

    • NetInterface

      public NetInterface()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      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
    • 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<@Valid NetAddress> subnets)
    • addSubnetsItem

      public NetInterface addSubnetsItem(NetAddress subnetsItem)
    • getSubnets

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

      public void setSubnets(List<@Valid 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
    • toJson

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