public static final class PolicyBgpNeighborStatus.Builder
extends java.lang.Object
PolicyBgpNeighborStatus
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
PolicyBgpNeighborStatus . |
Modifier and Type | Method and Description |
---|---|
PolicyBgpNeighborStatus |
build() |
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.Builder |
setAnnouncedCapabilities(java.util.List<java.lang.String> announcedCapabilities)
BGP capabilities sent to BGP neighbor.
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.Builder |
setConnectionState(java.lang.String connectionState)
Possible values are:
PolicyBgpNeighborStatus.CONNECTION_STATE_INVALID
PolicyBgpNeighborStatus.CONNECTION_STATE_IDLE
PolicyBgpNeighborStatus.CONNECTION_STATE_CONNECT
PolicyBgpNeighborStatus.CONNECTION_STATE_ACTIVE
PolicyBgpNeighborStatus.CONNECTION_STATE_OPEN_SENT
PolicyBgpNeighborStatus.CONNECTION_STATE_OPEN_CONFIRM
PolicyBgpNeighborStatus.CONNECTION_STATE_ESTABLISHED
PolicyBgpNeighborStatus.CONNECTION_STATE_UNKNOWN
Current state of the BGP session. |
PolicyBgpNeighborStatus.Builder |
setEdgePath(java.lang.String edgePath)
Transport node policy path
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.Builder |
setGracefulRestartMode(java.lang.String gracefulRestartMode)
Current state of graceful restart of BGP neighbor.
|
PolicyBgpNeighborStatus.Builder |
setHoldTime(java.lang.Long holdTime)
If a HELLO packet is not seen from BGP Peer withing hold_time then BGP neighbor
will be marked as down.
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.Builder |
setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated, unset if data source has never updated
the data.
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.Builder |
setNegotiatedCapability(java.util.List<java.lang.String> negotiatedCapability)
BGP capabilities negotiated with BGP neighbor.
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.Builder |
setNeighborRouterId(java.lang.String neighborRouterId)
Router ID of the BGP neighbor.
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.Builder |
setRemoteSite(ResourceReference remoteSite) |
PolicyBgpNeighborStatus.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.
|
PolicyBgpNeighborStatus.Builder |
setTier0Path(java.lang.String tier0Path)
Policy path to Tier0
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
PolicyBgpNeighborStatus.Builder |
setTimeSinceEstablished(java.lang.Long timeSinceEstablished)
Time(in seconds) since connection was established.
|
PolicyBgpNeighborStatus.Builder |
setTotalInPrefixCount(java.lang.Long totalInPrefixCount)
Sum of in prefixes counts across all address families.
|
PolicyBgpNeighborStatus.Builder |
setTotalOutPrefixCount(java.lang.Long totalOutPrefixCount)
Sum of out prefixes counts across all address families.
|
PolicyBgpNeighborStatus.Builder |
setType(java.lang.String type)
Possible values are:
PolicyBgpNeighborStatus.TYPE_INTER_SR
PolicyBgpNeighborStatus.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()
PolicyBgpNeighborStatus
.public PolicyBgpNeighborStatus.Builder setAddressFamilies(java.util.List<BgpAddressFamily> addressFamilies)
addressFamilies
- New value for the property.public PolicyBgpNeighborStatus.Builder setAnnouncedCapabilities(java.util.List<java.lang.String> announcedCapabilities)
announcedCapabilities
- New value for the property.public PolicyBgpNeighborStatus.Builder setConnectionDropCount(java.lang.Long connectionDropCount)
connectionDropCount
- New value for the property.public PolicyBgpNeighborStatus.Builder setConnectionState(java.lang.String connectionState)
PolicyBgpNeighborStatus.CONNECTION_STATE_INVALID
PolicyBgpNeighborStatus.CONNECTION_STATE_IDLE
PolicyBgpNeighborStatus.CONNECTION_STATE_CONNECT
PolicyBgpNeighborStatus.CONNECTION_STATE_ACTIVE
PolicyBgpNeighborStatus.CONNECTION_STATE_OPEN_SENT
PolicyBgpNeighborStatus.CONNECTION_STATE_OPEN_CONFIRM
PolicyBgpNeighborStatus.CONNECTION_STATE_ESTABLISHED
PolicyBgpNeighborStatus.CONNECTION_STATE_UNKNOWN
connectionState
- New value for the property.public PolicyBgpNeighborStatus.Builder setEdgePath(java.lang.String edgePath)
edgePath
- New value for the property.public PolicyBgpNeighborStatus.Builder setEstablishedConnectionCount(java.lang.Long establishedConnectionCount)
establishedConnectionCount
- New value for the property.public PolicyBgpNeighborStatus.Builder setGracefulRestartMode(java.lang.String gracefulRestartMode)
gracefulRestartMode
- New value for the property.public PolicyBgpNeighborStatus.Builder setHoldTime(java.lang.Long holdTime)
holdTime
- New value for the property.public PolicyBgpNeighborStatus.Builder setKeepAliveInterval(java.lang.Long keepAliveInterval)
keepAliveInterval
- New value for the property.public PolicyBgpNeighborStatus.Builder setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
lastUpdateTimestamp
- New value for the property.public PolicyBgpNeighborStatus.Builder setLocalPort(java.lang.Long localPort)
localPort
- New value for the property.public PolicyBgpNeighborStatus.Builder setMessagesReceived(java.lang.Long messagesReceived)
messagesReceived
- New value for the property.public PolicyBgpNeighborStatus.Builder setMessagesSent(java.lang.Long messagesSent)
messagesSent
- New value for the property.public PolicyBgpNeighborStatus.Builder setNegotiatedCapability(java.util.List<java.lang.String> negotiatedCapability)
negotiatedCapability
- New value for the property.public PolicyBgpNeighborStatus.Builder setNeighborAddress(java.lang.String neighborAddress)
neighborAddress
- New value for the property.public PolicyBgpNeighborStatus.Builder setNeighborRouterId(java.lang.String neighborRouterId)
neighborRouterId
- New value for the property.public PolicyBgpNeighborStatus.Builder setRemoteAsNumber(java.lang.String remoteAsNumber)
remoteAsNumber
- New value for the property.public PolicyBgpNeighborStatus.Builder setRemotePort(java.lang.Long remotePort)
remotePort
- New value for the property.public PolicyBgpNeighborStatus.Builder setRemoteSite(ResourceReference remoteSite)
remoteSite
- New value for the property.public PolicyBgpNeighborStatus.Builder setSourceAddress(java.lang.String sourceAddress)
sourceAddress
- New value for the property.public PolicyBgpNeighborStatus.Builder setTier0Path(java.lang.String tier0Path)
tier0Path
- New value for the property.public PolicyBgpNeighborStatus.Builder setTimeSinceEstablished(java.lang.Long timeSinceEstablished)
timeSinceEstablished
- New value for the property.public PolicyBgpNeighborStatus.Builder setTotalInPrefixCount(java.lang.Long totalInPrefixCount)
totalInPrefixCount
- New value for the property.public PolicyBgpNeighborStatus.Builder setTotalOutPrefixCount(java.lang.Long totalOutPrefixCount)
totalOutPrefixCount
- New value for the property.public PolicyBgpNeighborStatus.Builder setType(java.lang.String type)
type
- New value for the property.public PolicyBgpNeighborStatus build()