Partilhar via


VirtualHubEffectiveRoute Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.VirtualHubEffectiveRoute

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 VirtualHubEffectiveRoute class.

Method Summary

Modifier and Type Method and Description
List<String> addressPrefixes()

Get the addressPrefixes property: The list of address prefixes.

String asPath()

Get the asPath property: The ASPath of this route.

static VirtualHubEffectiveRoute fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubEffectiveRoute from the JsonReader.

String nextHopType()

Get the nextHopType property: The type of the next hop.

List<String> nextHops()

Get the nextHops property: The list of next hops.

String routeOrigin()

Get the routeOrigin property: The origin of this route.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualHubEffectiveRoute withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: The list of address prefixes.

VirtualHubEffectiveRoute withAsPath(String asPath)

Set the asPath property: The ASPath of this route.

VirtualHubEffectiveRoute withNextHopType(String nextHopType)

Set the nextHopType property: The type of the next hop.

VirtualHubEffectiveRoute withNextHops(List<String> nextHops)

Set the nextHops property: The list of next hops.

VirtualHubEffectiveRoute withRouteOrigin(String routeOrigin)

Set the routeOrigin property: The origin of this route.

Methods inherited from java.lang.Object

Constructor Details

VirtualHubEffectiveRoute

public VirtualHubEffectiveRoute()

Creates an instance of VirtualHubEffectiveRoute class.

Method Details

addressPrefixes

public List addressPrefixes()

Get the addressPrefixes property: The list of address prefixes.

Returns:

the addressPrefixes value.

asPath

public String asPath()

Get the asPath property: The ASPath of this route.

Returns:

the asPath value.

fromJson

public static VirtualHubEffectiveRoute fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubEffectiveRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualHubEffectiveRoute if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VirtualHubEffectiveRoute.

nextHopType

public String nextHopType()

Get the nextHopType property: The type of the next hop.

Returns:

the nextHopType value.

nextHops

public List nextHops()

Get the nextHops property: The list of next hops.

Returns:

the nextHops value.

routeOrigin

public String routeOrigin()

Get the routeOrigin property: The origin of this route.

Returns:

the routeOrigin value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefixes

public VirtualHubEffectiveRoute withAddressPrefixes(List addressPrefixes)

Set the addressPrefixes property: The list of address prefixes.

Parameters:

addressPrefixes - the addressPrefixes value to set.

Returns:

the VirtualHubEffectiveRoute object itself.

withAsPath

public VirtualHubEffectiveRoute withAsPath(String asPath)

Set the asPath property: The ASPath of this route.

Parameters:

asPath - the asPath value to set.

Returns:

the VirtualHubEffectiveRoute object itself.

withNextHopType

public VirtualHubEffectiveRoute withNextHopType(String nextHopType)

Set the nextHopType property: The type of the next hop.

Parameters:

nextHopType - the nextHopType value to set.

Returns:

the VirtualHubEffectiveRoute object itself.

withNextHops

public VirtualHubEffectiveRoute withNextHops(List nextHops)

Set the nextHops property: The list of next hops.

Parameters:

nextHops - the nextHops value to set.

Returns:

the VirtualHubEffectiveRoute object itself.

withRouteOrigin

public VirtualHubEffectiveRoute withRouteOrigin(String routeOrigin)

Set the routeOrigin property: The origin of this route.

Parameters:

routeOrigin - the routeOrigin value to set.

Returns:

the VirtualHubEffectiveRoute object itself.

Applies to