PeerRoute Class

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

Implements

public final class PeerRoute
implements JsonSerializable<PeerRoute>

Peer routing details.

Constructor Summary

Constructor Description
PeerRoute()

Creates an instance of PeerRoute class.

Method Summary

Modifier and Type Method and Description
String asPath()

Get the asPath property: The route's AS path sequence.

static PeerRoute fromJson(JsonReader jsonReader)

Reads an instance of PeerRoute from the JsonReader.

String localAddress()

Get the localAddress property: The peer's local address.

String network()

Get the network property: The route's network prefix.

String nextHop()

Get the nextHop property: The route's next hop.

String origin()

Get the origin property: The source this route was learned from.

String sourcePeer()

Get the sourcePeer property: The peer this route was learned from.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer weight()

Get the weight property: The route's weight.

Methods inherited from java.lang.Object

Constructor Details

PeerRoute

public PeerRoute()

Creates an instance of PeerRoute class.

Method Details

asPath

public String asPath()

Get the asPath property: The route's AS path sequence.

Returns:

the asPath value.

fromJson

public static PeerRoute fromJson(JsonReader jsonReader)

Reads an instance of PeerRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PeerRoute 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 PeerRoute.

localAddress

public String localAddress()

Get the localAddress property: The peer's local address.

Returns:

the localAddress value.

network

public String network()

Get the network property: The route's network prefix.

Returns:

the network value.

nextHop

public String nextHop()

Get the nextHop property: The route's next hop.

Returns:

the nextHop value.

origin

public String origin()

Get the origin property: The source this route was learned from.

Returns:

the origin value.

sourcePeer

public String sourcePeer()

Get the sourcePeer property: The peer this route was learned from.

Returns:

the sourcePeer value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

weight

public Integer weight()

Get the weight property: The route's weight.

Returns:

the weight value.

Applies to