VirtualHubEffectiveRoute Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. VirtualHubEffectiveRoute
- com.
Implements
public final class VirtualHubEffectiveRoute
implements JsonSerializable<VirtualHubEffectiveRoute>
The effective route configured on the virtual hub or specified resource.
Constructor Summary
Constructor | Description |
---|---|
VirtualHubEffectiveRoute() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
addressPrefixes()
Get the address |
String |
asPath()
Get the as |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
String |
nextHopType()
Get the next |
List<String> |
nextHops()
Get the next |
String |
routeOrigin()
Get the route |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withAddressPrefixes(List<String> addressPrefixes)
Set the address |
Virtual |
withAsPath(String asPath)
Set the as |
Virtual |
withNextHopType(String nextHopType)
Set the next |
Virtual |
withNextHops(List<String> nextHops)
Set the next |
Virtual |
withRouteOrigin(String routeOrigin)
Set the route |
Methods inherited from java.lang.Object
Constructor Details
VirtualHubEffectiveRoute
public VirtualHubEffectiveRoute()
Creates an instance of VirtualHubEffectiveRoute class.
Method Details
addressPrefixes
public List
Get the addressPrefixes property: The list of address prefixes.
Returns:
asPath
public String asPath()
Get the asPath property: The ASPath of this route.
Returns:
fromJson
public static VirtualHubEffectiveRoute fromJson(JsonReader jsonReader)
Reads an instance of VirtualHubEffectiveRoute from the JsonReader.
Parameters:
Returns:
Throws:
nextHopType
public String nextHopType()
Get the nextHopType property: The type of the next hop.
Returns:
nextHops
public List
Get the nextHops property: The list of next hops.
Returns:
routeOrigin
public String routeOrigin()
Get the routeOrigin property: The origin of this route.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddressPrefixes
public VirtualHubEffectiveRoute withAddressPrefixes(List
Set the addressPrefixes property: The list of address prefixes.
Parameters:
Returns:
withAsPath
public VirtualHubEffectiveRoute withAsPath(String asPath)
Set the asPath property: The ASPath of this route.
Parameters:
Returns:
withNextHopType
public VirtualHubEffectiveRoute withNextHopType(String nextHopType)
Set the nextHopType property: The type of the next hop.
Parameters:
Returns:
withNextHops
public VirtualHubEffectiveRoute withNextHops(List
Set the nextHops property: The list of next hops.
Parameters:
Returns:
withRouteOrigin
public VirtualHubEffectiveRoute withRouteOrigin(String routeOrigin)
Set the routeOrigin property: The origin of this route.
Parameters:
Returns:
Applies to
Azure SDK for Java