Class VirtualHubRouteV2
java.lang.Object
com.azure.resourcemanager.network.models.VirtualHubRouteV2
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualHubRouteV2>
public final class VirtualHubRouteV2
extends Object
implements com.azure.json.JsonSerializable<VirtualHubRouteV2>
VirtualHubRouteTableV2 route.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinations property: List of all destinations.Get the destinationType property: The type of destinations.static VirtualHubRouteV2fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualHubRouteV2 from the JsonReader.nextHops()Get the nextHops property: NextHops ip address.Get the nextHopType property: The type of next hops.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinations(List<String> destinations) Set the destinations property: List of all destinations.withDestinationType(String destinationType) Set the destinationType property: The type of destinations.withNextHops(List<String> nextHops) Set the nextHops property: NextHops ip address.withNextHopType(String nextHopType) Set the nextHopType property: The type of next hops.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
-
VirtualHubRouteV2
public VirtualHubRouteV2()Creates an instance of VirtualHubRouteV2 class.
-
-
Method Details
-
destinationType
Get the destinationType property: The type of destinations.- Returns:
- the destinationType value.
-
withDestinationType
Set the destinationType property: The type of destinations.- Parameters:
destinationType- the destinationType value to set.- Returns:
- the VirtualHubRouteV2 object itself.
-
destinations
Get the destinations property: List of all destinations.- Returns:
- the destinations value.
-
withDestinations
Set the destinations property: List of all destinations.- Parameters:
destinations- the destinations value to set.- Returns:
- the VirtualHubRouteV2 object itself.
-
nextHopType
Get the nextHopType property: The type of next hops.- Returns:
- the nextHopType value.
-
withNextHopType
Set the nextHopType property: The type of next hops.- Parameters:
nextHopType- the nextHopType value to set.- Returns:
- the VirtualHubRouteV2 object itself.
-
nextHops
Get the nextHops property: NextHops ip address.- Returns:
- the nextHops value.
-
withNextHops
Set the nextHops property: NextHops ip address.- Parameters:
nextHops- the nextHops value to set.- Returns:
- the VirtualHubRouteV2 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<VirtualHubRouteV2>- Throws:
IOException
-
fromJson
Reads an instance of VirtualHubRouteV2 from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualHubRouteV2 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 VirtualHubRouteV2.
-