Class VirtualHubRouteV2
- java.lang.Object
-
- com.azure.resourcemanager.network.models.VirtualHubRouteV2
-
public final class VirtualHubRouteV2 extends Object
VirtualHubRouteTableV2 route.
-
-
Constructor Summary
Constructors Constructor Description VirtualHubRouteV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>destinations()Get the destinations property: List of all destinations.StringdestinationType()Get the destinationType property: The type of destinations.List<String>nextHops()Get the nextHops property: NextHops ip address.StringnextHopType()Get the nextHopType property: The type of next hops.voidvalidate()Validates the instance.VirtualHubRouteV2withDestinations(List<String> destinations)Set the destinations property: List of all destinations.VirtualHubRouteV2withDestinationType(String destinationType)Set the destinationType property: The type of destinations.VirtualHubRouteV2withNextHops(List<String> nextHops)Set the nextHops property: NextHops ip address.VirtualHubRouteV2withNextHopType(String nextHopType)Set the nextHopType property: The type of next hops.
-
-
-
Method Detail
-
destinationType
public String destinationType()
Get the destinationType property: The type of destinations.- Returns:
- the destinationType value.
-
withDestinationType
public VirtualHubRouteV2 withDestinationType(String destinationType)
Set the destinationType property: The type of destinations.- Parameters:
destinationType- the destinationType value to set.- Returns:
- the VirtualHubRouteV2 object itself.
-
destinations
public List<String> destinations()
Get the destinations property: List of all destinations.- Returns:
- the destinations value.
-
withDestinations
public VirtualHubRouteV2 withDestinations(List<String> destinations)
Set the destinations property: List of all destinations.- Parameters:
destinations- the destinations value to set.- Returns:
- the VirtualHubRouteV2 object itself.
-
nextHopType
public String nextHopType()
Get the nextHopType property: The type of next hops.- Returns:
- the nextHopType value.
-
withNextHopType
public VirtualHubRouteV2 withNextHopType(String nextHopType)
Set the nextHopType property: The type of next hops.- Parameters:
nextHopType- the nextHopType value to set.- Returns:
- the VirtualHubRouteV2 object itself.
-
nextHops
public List<String> nextHops()
Get the nextHops property: NextHops ip address.- Returns:
- the nextHops value.
-
withNextHops
public VirtualHubRouteV2 withNextHops(List<String> nextHops)
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.
-
-