Class VirtualHubEffectiveRoute
java.lang.Object
com.azure.resourcemanager.network.models.VirtualHubEffectiveRoute
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualHubEffectiveRoute>
public final class VirtualHubEffectiveRoute
extends Object
implements com.azure.json.JsonSerializable<VirtualHubEffectiveRoute>
The effective route configured on the virtual hub or specified resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualHubEffectiveRoute class. -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefixes property: The list of address prefixes.asPath()Get the asPath property: The ASPath of this route.static VirtualHubEffectiveRoutefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualHubEffectiveRoute from the JsonReader.nextHops()Get the nextHops property: The list of next hops.Get the nextHopType property: The type of the next hop.Get the routeOrigin property: The origin of this route.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddressPrefixes(List<String> addressPrefixes) Set the addressPrefixes property: The list of address prefixes.withAsPath(String asPath) Set the asPath property: The ASPath of this route.withNextHops(List<String> nextHops) Set the nextHops property: The list of next hops.withNextHopType(String nextHopType) Set the nextHopType property: The type of the next hop.withRouteOrigin(String routeOrigin) Set the routeOrigin property: The origin of this route.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
-
VirtualHubEffectiveRoute
public VirtualHubEffectiveRoute()Creates an instance of VirtualHubEffectiveRoute class.
-
-
Method Details
-
addressPrefixes
Get the addressPrefixes property: The list of address prefixes.- Returns:
- the addressPrefixes value.
-
withAddressPrefixes
Set the addressPrefixes property: The list of address prefixes.- Parameters:
addressPrefixes- the addressPrefixes value to set.- Returns:
- the VirtualHubEffectiveRoute object itself.
-
nextHops
Get the nextHops property: The list of next hops.- Returns:
- the nextHops value.
-
withNextHops
Set the nextHops property: The list of next hops.- Parameters:
nextHops- the nextHops value to set.- Returns:
- the VirtualHubEffectiveRoute object itself.
-
nextHopType
Get the nextHopType property: The type of the next hop.- Returns:
- the nextHopType value.
-
withNextHopType
Set the nextHopType property: The type of the next hop.- Parameters:
nextHopType- the nextHopType value to set.- Returns:
- the VirtualHubEffectiveRoute object itself.
-
asPath
Get the asPath property: The ASPath of this route.- Returns:
- the asPath value.
-
withAsPath
Set the asPath property: The ASPath of this route.- Parameters:
asPath- the asPath value to set.- Returns:
- the VirtualHubEffectiveRoute object itself.
-
routeOrigin
Get the routeOrigin property: The origin of this route.- Returns:
- the routeOrigin value.
-
withRouteOrigin
Set the routeOrigin property: The origin of this route.- Parameters:
routeOrigin- the routeOrigin value to set.- Returns:
- the VirtualHubEffectiveRoute 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<VirtualHubEffectiveRoute>- Throws:
IOException
-
fromJson
public static VirtualHubEffectiveRoute fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualHubEffectiveRoute from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualHubEffectiveRoute 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 VirtualHubEffectiveRoute.
-