Class VirtualHubRouteTable
java.lang.Object
com.azure.resourcemanager.network.models.VirtualHubRouteTable
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualHubRouteTable>
public final class VirtualHubRouteTable
extends Object
implements com.azure.json.JsonSerializable<VirtualHubRouteTable>
VirtualHub route table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualHubRouteTablefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualHubRouteTable from the JsonReader.routes()Get the routes property: List of all routes.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRoutes(List<VirtualHubRoute> routes) Set the routes property: List of all routes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualHubRouteTable
public VirtualHubRouteTable()Creates an instance of VirtualHubRouteTable class.
-
-
Method Details
-
routes
Get the routes property: List of all routes.- Returns:
- the routes value.
-
withRoutes
Set the routes property: List of all routes.- Parameters:
routes- the routes value to set.- Returns:
- the VirtualHubRouteTable object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualHubRouteTable>- Throws:
IOException
-
fromJson
public static VirtualHubRouteTable fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualHubRouteTable from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualHubRouteTable if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the VirtualHubRouteTable.
-