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
    Constructor
    Description
    Creates an instance of BgpPeerStatus class.
  • Method Summary

    Modifier and Type
    Method
    Description
    asn()
    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.
    fromJson(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.
    Get the neighbor property: The remote BGP peer.
    Get the routesReceived property: The number of routes learned from this peer.
    Get the state property: The BGP peer state.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public String localAddress()
      Get the localAddress property: The virtual network gateway's local address.
      Returns:
      the localAddress value.
    • neighbor

      public String neighbor()
      Get the neighbor property: The remote BGP peer.
      Returns:
      the neighbor value.
    • asn

      public Long asn()
      Get the asn property: The autonomous system number of the remote BGP peer.
      Returns:
      the asn value.
    • state

      public BgpPeerState state()
      Get the state property: The BGP peer state.
      Returns:
      the state value.
    • connectedDuration

      public String connectedDuration()
      Get the connectedDuration property: For how long the peering has been up.
      Returns:
      the connectedDuration value.
    • routesReceived

      public Long routesReceived()
      Get the routesReceived property: The number of routes learned from this peer.
      Returns:
      the routesReceived value.
    • messagesSent

      public Long messagesSent()
      Get the messagesSent property: The number of BGP messages sent.
      Returns:
      the messagesSent value.
    • messagesReceived

      public Long 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BgpPeerStatus>
      Throws:
      IOException
    • fromJson

      public static BgpPeerStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.