Class BgpPeerStatus

java.lang.Object
com.azure.resourcemanager.network.models.BgpPeerStatus

public final class BgpPeerStatus extends Object
BGP peer status details.
  • 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.