HubRoute Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. HubRoute
- com.
Implements
public final class HubRoute
implements JsonSerializable<HubRoute>
RouteTable route.
Constructor Summary
Constructor | Description |
---|---|
HubRoute() |
Creates an instance of Hub |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
destinationType()
Get the destination |
List<String> |
destinations()
Get the destinations property: List of all destinations. |
static
Hub |
fromJson(JsonReader jsonReader)
Reads an instance of Hub |
String |
name()
Get the name property: The name of the Route that is unique within a Route |
String |
nextHop()
Get the next |
String |
nextHopType()
Get the next |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Hub |
withDestinationType(String destinationType)
Set the destination |
Hub |
withDestinations(List<String> destinations)
Set the destinations property: List of all destinations. |
Hub |
withName(String name)
Set the name property: The name of the Route that is unique within a Route |
Hub |
withNextHop(String nextHop)
Set the next |
Hub |
withNextHopType(String nextHopType)
Set the next |
Methods inherited from java.lang.Object
Constructor Details
HubRoute
public HubRoute()
Creates an instance of HubRoute class.
Method Details
destinationType
public String destinationType()
Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).
Returns:
destinations
public List
Get the destinations property: List of all destinations.
Returns:
fromJson
public static HubRoute fromJson(JsonReader jsonReader)
Reads an instance of HubRoute from the JsonReader.
Parameters:
Returns:
Throws:
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:
nextHop
public String nextHop()
Get the nextHop property: NextHop resource ID.
Returns:
nextHopType
public String nextHopType()
Get the nextHopType property: The type of next hop (eg: ResourceId).
Returns:
toJson
validate
public void validate()
Validates the instance.
withDestinationType
public HubRoute withDestinationType(String destinationType)
Set the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).
Parameters:
Returns:
withDestinations
public HubRoute withDestinations(List
Set the destinations property: List of all destinations.
Parameters:
Returns:
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:
Returns:
withNextHop
public HubRoute withNextHop(String nextHop)
Set the nextHop property: NextHop resource ID.
Parameters:
Returns:
withNextHopType
public HubRoute withNextHopType(String nextHopType)
Set the nextHopType property: The type of next hop (eg: ResourceId).
Parameters:
Returns: