Class HubRoute
- java.lang.Object
-
- com.azure.resourcemanager.network.models.HubRoute
-
public final class HubRoute extends Object
RouteTable route.
-
-
Constructor Summary
Constructors Constructor Description HubRoute()
-
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 (eg: CIDR, ResourceId, Service).Stringname()Get the name property: The name of the Route that is unique within a RouteTable.StringnextHop()Get the nextHop property: NextHop resource ID.StringnextHopType()Get the nextHopType property: The type of next hop (eg: ResourceId).voidvalidate()Validates the instance.HubRoutewithDestinations(List<String> destinations)Set the destinations property: List of all destinations.HubRoutewithDestinationType(String destinationType)Set the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).HubRoutewithName(String name)Set the name property: The name of the Route that is unique within a RouteTable.HubRoutewithNextHop(String nextHop)Set the nextHop property: NextHop resource ID.HubRoutewithNextHopType(String nextHopType)Set the nextHopType property: The type of next hop (eg: ResourceId).
-
-
-
Method Detail
-
name
public String 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
public HubRoute withName(String name)
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
public String destinationType()
Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).- Returns:
- the destinationType value.
-
withDestinationType
public HubRoute withDestinationType(String destinationType)
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
public List<String> destinations()
Get the destinations property: List of all destinations.- Returns:
- the destinations value.
-
withDestinations
public HubRoute withDestinations(List<String> destinations)
Set the destinations property: List of all destinations.- Parameters:
destinations- the destinations value to set.- Returns:
- the HubRoute object itself.
-
nextHopType
public String nextHopType()
Get the nextHopType property: The type of next hop (eg: ResourceId).- Returns:
- the nextHopType value.
-
withNextHopType
public HubRoute withNextHopType(String nextHopType)
Set the nextHopType property: The type of next hop (eg: ResourceId).- Parameters:
nextHopType- the nextHopType value to set.- Returns:
- the HubRoute object itself.
-
nextHop
public String nextHop()
Get the nextHop property: NextHop resource ID.- Returns:
- the nextHop value.
-
withNextHop
public HubRoute withNextHop(String nextHop)
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.
-
-