Class VnetRoute
- java.lang.Object
-
- com.azure.resourcemanager.network.models.VnetRoute
-
public final class VnetRoute extends Object
List of routes that control routing from VirtualHub into a virtual network connection.
-
-
Constructor Summary
Constructors Constructor Description VnetRoute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.azure.core.management.SubResource>bgpConnections()Get the bgpConnections property: The list of references to HubBgpConnection objects.List<StaticRoute>staticRoutes()Get the staticRoutes property: List of all Static Routes.voidvalidate()Validates the instance.VnetRoutewithStaticRoutes(List<StaticRoute> staticRoutes)Set the staticRoutes property: List of all Static Routes.
-
-
-
Method Detail
-
staticRoutes
public List<StaticRoute> staticRoutes()
Get the staticRoutes property: List of all Static Routes.- Returns:
- the staticRoutes value.
-
withStaticRoutes
public VnetRoute withStaticRoutes(List<StaticRoute> staticRoutes)
Set the staticRoutes property: List of all Static Routes.- Parameters:
staticRoutes- the staticRoutes value to set.- Returns:
- the VnetRoute object itself.
-
bgpConnections
public List<com.azure.core.management.SubResource> 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.
-
-