Class BgpPeerStatus
java.lang.Object
com.azure.resourcemanager.network.models.BgpPeerStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BgpPeerStatus>
public final class BgpPeerStatus
extends Object
implements com.azure.json.JsonSerializable<BgpPeerStatus>
BGP peer status details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasn()Get the asn property: The autonomous system number of the remote BGP peer.Get the connectedDuration property: For how long the peering has been up.static BgpPeerStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BgpPeerStatus from the JsonReader.Get the localAddress property: The virtual network gateway's local address.Get the messagesReceived property: The number of BGP messages received.Get the messagesSent property: The number of BGP messages sent.neighbor()Get the neighbor property: The remote BGP peer.Get the routesReceived property: The number of routes learned from this peer.state()Get the state property: The BGP peer state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BgpPeerStatus
public BgpPeerStatus()Creates an instance of BgpPeerStatus class.
-
-
Method Details
-
localAddress
Get the localAddress property: The virtual network gateway's local address.- Returns:
- the localAddress value.
-
neighbor
Get the neighbor property: The remote BGP peer.- Returns:
- the neighbor value.
-
asn
Get the asn property: The autonomous system number of the remote BGP peer.- Returns:
- the asn value.
-
state
Get the state property: The BGP peer state.- Returns:
- the state value.
-
connectedDuration
Get the connectedDuration property: For how long the peering has been up.- Returns:
- the connectedDuration value.
-
routesReceived
Get the routesReceived property: The number of routes learned from this peer.- Returns:
- the routesReceived value.
-
messagesSent
Get the messagesSent property: The number of BGP messages sent.- Returns:
- the messagesSent value.
-
messagesReceived
Get the messagesReceived property: The number of BGP messages received.- Returns:
- the messagesReceived value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BgpPeerStatus>- Throws:
IOException
-
fromJson
Reads an instance of BgpPeerStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BgpPeerStatus 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 BgpPeerStatus.
-