PeerRoute Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. PeerRoute
- com.
Implements
public final class PeerRoute
implements JsonSerializable<PeerRoute>
Peer routing details.
Constructor Summary
Constructor | Description |
---|---|
PeerRoute() |
Creates an instance of Peer |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
asPath()
Get the as |
static
Peer |
fromJson(JsonReader jsonReader)
Reads an instance of Peer |
String |
localAddress()
Get the local |
String |
network()
Get the network property: The route's network prefix. |
String |
nextHop()
Get the next |
String |
origin()
Get the origin property: The source this route was learned from. |
String |
sourcePeer()
Get the source |
Json |
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:
fromJson
public static PeerRoute fromJson(JsonReader jsonReader)
Reads an instance of PeerRoute from the JsonReader.
Parameters:
Returns:
Throws:
localAddress
public String localAddress()
Get the localAddress property: The peer's local address.
Returns:
network
public String network()
Get the network property: The route's network prefix.
Returns:
nextHop
public String nextHop()
Get the nextHop property: The route's next hop.
Returns:
origin
public String origin()
Get the origin property: The source this route was learned from.
Returns:
sourcePeer
public String sourcePeer()
Get the sourcePeer property: The peer this route was learned from.
Returns:
toJson
validate
public void validate()
Validates the instance.
weight
public Integer weight()
Get the weight property: The route's weight.
Returns:
Applies to
Azure SDK for Java