Class HubRoute
java.lang.Object
com.azure.resourcemanager.network.models.HubRoute
RouteTable route.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinations property: List of all destinations.Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).name()Get the name property: The name of the Route that is unique within a RouteTable.nextHop()Get the nextHop property: NextHop resource ID.Get the nextHopType property: The type of next hop (eg: ResourceId).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 (eg: CIDR, ResourceId, Service).Set the name property: The name of the Route that is unique within a RouteTable.withNextHop(String nextHop) Set the nextHop property: NextHop resource ID.withNextHopType(String nextHopType) Set the nextHopType property: The type of next hop (eg: ResourceId).
-
Constructor Details
-
HubRoute
public HubRoute()Creates an instance of HubRoute class.
-
-
Method Details
-
name
Get the name property: The name of the Route that is unique within a RouteTable. This name can be used to access this route.- Returns:
- the name value.
-
withName
Set the name property: The name of the Route that is unique within a RouteTable. This name can be used to access this route.- Parameters:
name- the name value to set.- Returns:
- the HubRoute object itself.
-
destinationType
Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).- Returns:
- the destinationType value.
-
withDestinationType
Set the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).- Parameters:
destinationType- the destinationType value to set.- Returns:
- the HubRoute 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 HubRoute object itself.
-
nextHopType
Get the nextHopType property: The type of next hop (eg: ResourceId).- Returns:
- the nextHopType value.
-
withNextHopType
Set the nextHopType property: The type of next hop (eg: ResourceId).- Parameters:
nextHopType- the nextHopType value to set.- Returns:
- the HubRoute object itself.
-
nextHop
Get the nextHop property: NextHop resource ID.- Returns:
- the nextHop value.
-
withNextHop
Set the nextHop property: NextHop resource ID.- Parameters:
nextHop- the nextHop value to set.- Returns:
- the HubRoute object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-