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

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

  • Constructor Details

    • Route

      public Route()
  • Method Details

    • 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
    • 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 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
    • toJson

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