VnetRoute Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. VnetRoute
- com.
Implements
public final class VnetRoute
implements JsonSerializable<VnetRoute>
List of routes that control routing from VirtualHub into a virtual network connection.
Constructor Summary
Constructor | Description |
---|---|
VnetRoute() |
Creates an instance of Vnet |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Sub |
bgpConnections()
Get the bgp |
static
Vnet |
fromJson(JsonReader jsonReader)
Reads an instance of Vnet |
List<Static |
staticRoutes()
Get the static |
Static |
staticRoutesConfig()
Get the static |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Vnet |
withStaticRoutes(List<StaticRoute> staticRoutes)
Set the static |
Vnet |
withStaticRoutesConfig(StaticRoutesConfig staticRoutesConfig)
Set the static |
Methods inherited from java.lang.Object
Constructor Details
VnetRoute
public VnetRoute()
Creates an instance of VnetRoute class.
Method Details
bgpConnections
public List
Get the bgpConnections property: The list of references to HubBgpConnection objects.
Returns:
fromJson
public static VnetRoute fromJson(JsonReader jsonReader)
Reads an instance of VnetRoute from the JsonReader.
Parameters:
Returns:
Throws:
staticRoutes
public List
Get the staticRoutes property: List of all Static Routes.
Returns:
staticRoutesConfig
public StaticRoutesConfig staticRoutesConfig()
Get the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.
Returns:
toJson
validate
public void validate()
Validates the instance.
withStaticRoutes
public VnetRoute withStaticRoutes(List
Set the staticRoutes property: List of all Static Routes.
Parameters:
Returns:
withStaticRoutesConfig
public VnetRoute withStaticRoutesConfig(StaticRoutesConfig staticRoutesConfig)
Set the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.
Parameters:
Returns:
Applies to
Azure SDK for Java