Class VnetRoute
java.lang.Object
com.azure.resourcemanager.network.models.VnetRoute
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VnetRoute>
List of routes that control routing from VirtualHub into a virtual network connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.azure.core.management.SubResource> Get the bgpConnections property: The list of references to HubBgpConnection objects.static VnetRoutefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VnetRoute from the JsonReader.Get the staticRoutes property: List of all Static Routes.Get the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withStaticRoutes(List<StaticRoute> staticRoutes) Set the staticRoutes property: List of all Static Routes.withStaticRoutesConfig(StaticRoutesConfig staticRoutesConfig) Set the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.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
-
VnetRoute
public VnetRoute()Creates an instance of VnetRoute class.
-
-
Method Details
-
staticRoutesConfig
Get the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.- Returns:
- the staticRoutesConfig value.
-
withStaticRoutesConfig
Set the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.- Parameters:
staticRoutesConfig- the staticRoutesConfig value to set.- Returns:
- the VnetRoute object itself.
-
staticRoutes
Get the staticRoutes property: List of all Static Routes.- Returns:
- the staticRoutes value.
-
withStaticRoutes
Set the staticRoutes property: List of all Static Routes.- Parameters:
staticRoutes- the staticRoutes value to set.- Returns:
- the VnetRoute object itself.
-
bgpConnections
Get the bgpConnections property: The list of references to HubBgpConnection objects.- Returns:
- the bgpConnections value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VnetRoute>- Throws:
IOException
-
fromJson
Reads an instance of VnetRoute from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VnetRoute 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 VnetRoute.
-