Class Route
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:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
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
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
-