public static final class BgpNeighborStatus.Builder
extends java.lang.Object
BgpNeighborStatus
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
BgpNeighborStatus . |
Modifier and Type | Method and Description |
---|---|
BgpNeighborStatus |
build() |
BgpNeighborStatus.Builder |
setAddressFamilies(java.util.List<BgpAddressFamily> addressFamilies)
Address families of BGP neighbor
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setAnnouncedCapabilities(java.util.List<java.lang.String> announcedCapabilities)
BGP capabilities sent to BGP neighbor.
|
BgpNeighborStatus.Builder |
setConnectionDropCount(java.lang.Long connectionDropCount)
Count of connection drop format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setConnectionState(java.lang.String connectionState)
Possible values are:
BgpNeighborStatus.CONNECTION_STATE_INVALID
BgpNeighborStatus.CONNECTION_STATE_IDLE
BgpNeighborStatus.CONNECTION_STATE_CONNECT
BgpNeighborStatus.CONNECTION_STATE_ACTIVE
BgpNeighborStatus.CONNECTION_STATE_OPEN_SENT
BgpNeighborStatus.CONNECTION_STATE_OPEN_CONFIRM
BgpNeighborStatus.CONNECTION_STATE_ESTABLISHED
BgpNeighborStatus.CONNECTION_STATE_UNKNOWN
Current state of the BGP session. |
BgpNeighborStatus.Builder |
setEstablishedConnectionCount(java.lang.Long establishedConnectionCount)
Count of connections established format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setGracefulRestart(java.lang.Boolean gracefulRestart)
Current state of graceful restart where graceful_restart = true indicates
graceful restart is enabled and graceful_restart = false indicates graceful
restart is disabled.
|
BgpNeighborStatus.Builder |
setGracefulRestartMode(java.lang.String gracefulRestartMode)
Current state of graceful restart of BGP neighbor.
|
BgpNeighborStatus.Builder |
setHoldTime(java.lang.Long holdTime)
Time in ms to wait for HELLO from BGP peer.
|
BgpNeighborStatus.Builder |
setKeepAliveInterval(java.lang.Long keepAliveInterval)
Time in ms to wait for HELLO packet from BGP peer format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setLocalPort(java.lang.Long localPort)
TCP port number of Local BGP connection format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setLrComponentId(java.lang.String lrComponentId)
Logical router component(Service Router/Distributed Router) id
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setMessagesReceived(java.lang.Long messagesReceived)
Count of messages received from the neighbor format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setMessagesSent(java.lang.Long messagesSent)
Count of messages sent to the neighbor format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setNegotiatedCapability(java.util.List<java.lang.String> negotiatedCapability)
BGP capabilities negotiated with BGP neighbor.
|
BgpNeighborStatus.Builder |
setNeighborAddress(java.lang.String neighborAddress)
The IP of the BGP neighbor format: ip
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setNeighborRouterId(java.lang.String neighborRouterId)
Router ID of the BGP neighbor.
|
BgpNeighborStatus.Builder |
setRemoteAsNumber(java.lang.String remoteAsNumber)
AS number of the BGP neighbor
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setRemotePort(java.lang.Long remotePort)
TCP port number of remote BGP Connection format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setRemoteSite(ResourceReference remoteSite) |
BgpNeighborStatus.Builder |
setSourceAddress(java.lang.String sourceAddress)
The Ip address of logical port format: ip
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighborStatus.Builder |
setTimeSinceEstablished(java.lang.Long timeSinceEstablished)
Time(in seconds) since connection was established.
|
BgpNeighborStatus.Builder |
setTotalInPrefixCount(java.lang.Long totalInPrefixCount)
Sum of in prefixes counts across all address families.
|
BgpNeighborStatus.Builder |
setTotalOutPrefixCount(java.lang.Long totalOutPrefixCount)
Sum of out prefixes counts across all address families.
|
BgpNeighborStatus.Builder |
setTransportNode(ResourceReference transportNode) |
BgpNeighborStatus.Builder |
setType(java.lang.String type)
Possible values are:
BgpNeighborStatus.TYPE_INTER_SR BgpNeighborStatus.TYPE_USER BGP neighbor type
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
public Builder()
BgpNeighborStatus
.public BgpNeighborStatus.Builder setAddressFamilies(java.util.List<BgpAddressFamily> addressFamilies)
addressFamilies
- New value for the property.public BgpNeighborStatus.Builder setAnnouncedCapabilities(java.util.List<java.lang.String> announcedCapabilities)
announcedCapabilities
- New value for the property.public BgpNeighborStatus.Builder setConnectionDropCount(java.lang.Long connectionDropCount)
connectionDropCount
- New value for the property.public BgpNeighborStatus.Builder setConnectionState(java.lang.String connectionState)
BgpNeighborStatus.CONNECTION_STATE_INVALID
BgpNeighborStatus.CONNECTION_STATE_IDLE
BgpNeighborStatus.CONNECTION_STATE_CONNECT
BgpNeighborStatus.CONNECTION_STATE_ACTIVE
BgpNeighborStatus.CONNECTION_STATE_OPEN_SENT
BgpNeighborStatus.CONNECTION_STATE_OPEN_CONFIRM
BgpNeighborStatus.CONNECTION_STATE_ESTABLISHED
BgpNeighborStatus.CONNECTION_STATE_UNKNOWN
connectionState
- New value for the property.public BgpNeighborStatus.Builder setEstablishedConnectionCount(java.lang.Long establishedConnectionCount)
establishedConnectionCount
- New value for the property.public BgpNeighborStatus.Builder setGracefulRestart(java.lang.Boolean gracefulRestart)
gracefulRestart
- New value for the property.public BgpNeighborStatus.Builder setGracefulRestartMode(java.lang.String gracefulRestartMode)
gracefulRestartMode
- New value for the property.public BgpNeighborStatus.Builder setHoldTime(java.lang.Long holdTime)
holdTime
- New value for the property.public BgpNeighborStatus.Builder setKeepAliveInterval(java.lang.Long keepAliveInterval)
keepAliveInterval
- New value for the property.public BgpNeighborStatus.Builder setLocalPort(java.lang.Long localPort)
localPort
- New value for the property.public BgpNeighborStatus.Builder setLrComponentId(java.lang.String lrComponentId)
lrComponentId
- New value for the property.public BgpNeighborStatus.Builder setMessagesReceived(java.lang.Long messagesReceived)
messagesReceived
- New value for the property.public BgpNeighborStatus.Builder setMessagesSent(java.lang.Long messagesSent)
messagesSent
- New value for the property.public BgpNeighborStatus.Builder setNegotiatedCapability(java.util.List<java.lang.String> negotiatedCapability)
negotiatedCapability
- New value for the property.public BgpNeighborStatus.Builder setNeighborAddress(java.lang.String neighborAddress)
neighborAddress
- New value for the property.public BgpNeighborStatus.Builder setNeighborRouterId(java.lang.String neighborRouterId)
neighborRouterId
- New value for the property.public BgpNeighborStatus.Builder setRemoteAsNumber(java.lang.String remoteAsNumber)
remoteAsNumber
- New value for the property.public BgpNeighborStatus.Builder setRemotePort(java.lang.Long remotePort)
remotePort
- New value for the property.public BgpNeighborStatus.Builder setRemoteSite(ResourceReference remoteSite)
remoteSite
- New value for the property.public BgpNeighborStatus.Builder setSourceAddress(java.lang.String sourceAddress)
sourceAddress
- New value for the property.public BgpNeighborStatus.Builder setTimeSinceEstablished(java.lang.Long timeSinceEstablished)
timeSinceEstablished
- New value for the property.public BgpNeighborStatus.Builder setTotalInPrefixCount(java.lang.Long totalInPrefixCount)
totalInPrefixCount
- New value for the property.public BgpNeighborStatus.Builder setTotalOutPrefixCount(java.lang.Long totalOutPrefixCount)
totalOutPrefixCount
- New value for the property.public BgpNeighborStatus.Builder setTransportNode(ResourceReference transportNode)
transportNode
- New value for the property.public BgpNeighborStatus.Builder setType(java.lang.String type)
type
- New value for the property.public BgpNeighborStatus build()