Class Route
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Route
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class Route
extends Object
Route
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondestination(String destination) booleanstatic RouteCreate an instance of Route given an JSON stringDestination for this route in CIDR form.Gateway IP for this route.Metric for this route.inthashCode()voidsetDestination(String destination) voidsetGateway(String gateway) voidtoJson()Convert an instance of Route 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_DESTINATION
- See Also:
-
SERIALIZED_NAME_GATEWAY
- See Also:
-
SERIALIZED_NAME_METRIC
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Route
public Route()
-
-
Method Details
-
destination
-
getDestination
Destination for this route in CIDR form.- Returns:
- destination
-
setDestination
-
gateway
-
getGateway
Gateway IP for this route.- Returns:
- gateway
-
setGateway
-
metric
-
getMetric
Metric for this route. Optional.- Returns:
- metric
-
setMetric
-
equals
-
hashCode
public int hashCode() -
toString
-
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 Route
-
fromJson
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
Convert an instance of Route to an JSON string- Returns:
- JSON string
-