BgpPeerStatus Class

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

Implements

public final class BgpPeerStatus
implements JsonSerializable<BgpPeerStatus>

BGP peer status details.

Constructor Summary

Constructor Description
BgpPeerStatus()

Creates an instance of BgpPeerStatus class.

Method Summary

Modifier and Type Method and Description
Long asn()

Get the asn property: The autonomous system number of the remote BGP peer.

String connectedDuration()

Get the connectedDuration property: For how long the peering has been up.

static BgpPeerStatus fromJson(JsonReader jsonReader)

Reads an instance of BgpPeerStatus from the JsonReader.

String localAddress()

Get the localAddress property: The virtual network gateway's local address.

Long messagesReceived()

Get the messagesReceived property: The number of BGP messages received.

Long messagesSent()

Get the messagesSent property: The number of BGP messages sent.

String neighbor()

Get the neighbor property: The remote BGP peer.

Long routesReceived()

Get the routesReceived property: The number of routes learned from this peer.

BgpPeerState state()

Get the state property: The BGP peer state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

BgpPeerStatus

public BgpPeerStatus()

Creates an instance of BgpPeerStatus class.

Method Details

asn

public Long asn()

Get the asn property: The autonomous system number of the remote BGP peer.

Returns:

the asn value.

connectedDuration

public String connectedDuration()

Get the connectedDuration property: For how long the peering has been up.

Returns:

the connectedDuration value.

fromJson

public static BgpPeerStatus fromJson(JsonReader jsonReader)

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.

localAddress

public String localAddress()

Get the localAddress property: The virtual network gateway's local address.

Returns:

the localAddress value.

messagesReceived

public Long messagesReceived()

Get the messagesReceived property: The number of BGP messages received.

Returns:

the messagesReceived value.

messagesSent

public Long messagesSent()

Get the messagesSent property: The number of BGP messages sent.

Returns:

the messagesSent value.

neighbor

public String neighbor()

Get the neighbor property: The remote BGP peer.

Returns:

the neighbor value.

routesReceived

public Long routesReceived()

Get the routesReceived property: The number of routes learned from this peer.

Returns:

the routesReceived value.

state

public BgpPeerState state()

Get the state property: The BGP peer state.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to