java.lang.Object
io.github.alersrt.pod4j.openapi.model.Route

@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 Route extends Object
Route
  • Field Details

  • Constructor Details

    • Route

      public Route()
  • 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 Route
    • fromJson

      public static Route fromJson(String jsonString) throws IOException
      Create an instance of Route given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Route
      Throws:
      IOException - if the JSON string is invalid with respect to Route
    • destination

      public Route destination(String destination)
    • getDestination

      @Nullable public String getDestination()
      Destination for this route in CIDR form.
      Returns:
      destination
    • setDestination

      public void setDestination(String destination)
    • gateway

      public Route gateway(String gateway)
    • getGateway

      @Nullable public String getGateway()
      Gateway IP for this route.
      Returns:
      gateway
    • setGateway

      public void setGateway(String gateway)
    • metric

      public Route metric(Integer metric)
    • getMetric

      @Nullable public Integer getMetric()
      Metric for this route. Optional.
      Returns:
      metric
    • setMetric

      public void setMetric(Integer metric)
    • 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 Route to an JSON string
      Returns:
      JSON string