Package com.vmware.nsx_policy.model
Class PolicyBgpNeighborStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyBgpNeighborStatus.Builder
-
- Enclosing class:
- PolicyBgpNeighborStatus
public static final class PolicyBgpNeighborStatus.Builder extends java.lang.Object
Builder class forPolicyBgpNeighborStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyBgpNeighborStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 pathPolicyBgpNeighborStatus.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
setNeighborEdgeNode(java.lang.String neighborEdgeNode)
Inter-Sr neighbor edge node policy path 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.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyBgpNeighborStatus
.
-
-
Method Detail
-
setAddressFamilies
public 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.- Parameters:
addressFamilies
- New value for the property.
-
setAnnouncedCapabilities
public PolicyBgpNeighborStatus.Builder setAnnouncedCapabilities(java.util.List<java.lang.String> announcedCapabilities)
BGP capabilities sent to 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.- Parameters:
announcedCapabilities
- New value for the property.
-
setConnectionDropCount
public 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.- Parameters:
connectionDropCount
- New value for the property.
-
setConnectionState
public 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
- Parameters:
connectionState
- New value for the property.
-
-
setEdgePath
public PolicyBgpNeighborStatus.Builder setEdgePath(java.lang.String edgePath)
Transport node policy path- Parameters:
edgePath
- New value for the property.
-
setEstablishedConnectionCount
public 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.- Parameters:
establishedConnectionCount
- New value for the property.
-
setGracefulRestartMode
public PolicyBgpNeighborStatus.Builder setGracefulRestartMode(java.lang.String gracefulRestartMode)
Current state of graceful restart of BGP neighbor. Possible values are - 1. GR_AND_HELPER - Graceful restart with Helper 2. HELPER_ONLY - Helper only 3. DISABLE - Disabled This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
gracefulRestartMode
- New value for the property.
-
setHoldTime
public 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. 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.- Parameters:
holdTime
- New value for the property.
-
setKeepAliveInterval
public 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.- Parameters:
keepAliveInterval
- New value for the property.
-
setLastUpdateTimestamp
public PolicyBgpNeighborStatus.Builder setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated, unset if data source has never updated the data. 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.- Parameters:
lastUpdateTimestamp
- New value for the property.
-
setLocalPort
public 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.- Parameters:
localPort
- New value for the property.
-
setMessagesReceived
public 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.- Parameters:
messagesReceived
- New value for the property.
-
setMessagesSent
public 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.- Parameters:
messagesSent
- New value for the property.
-
setNegotiatedCapability
public PolicyBgpNeighborStatus.Builder setNegotiatedCapability(java.util.List<java.lang.String> negotiatedCapability)
BGP capabilities negotiated with 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.- Parameters:
negotiatedCapability
- New value for the property.
-
setNeighborAddress
public 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.- Parameters:
neighborAddress
- New value for the property.
-
setNeighborEdgeNode
public PolicyBgpNeighborStatus.Builder setNeighborEdgeNode(java.lang.String neighborEdgeNode)
Inter-Sr neighbor edge node policy path This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
neighborEdgeNode
- New value for the property.
-
setNeighborRouterId
public PolicyBgpNeighborStatus.Builder setNeighborRouterId(java.lang.String neighborRouterId)
Router ID 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.- Parameters:
neighborRouterId
- New value for the property.
-
setRemoteAsNumber
public 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.- Parameters:
remoteAsNumber
- New value for the property.
-
setRemotePort
public 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.- Parameters:
remotePort
- New value for the property.
-
setRemoteSite
public PolicyBgpNeighborStatus.Builder setRemoteSite(ResourceReference remoteSite)
- Parameters:
remoteSite
- New value for the property.
-
setSourceAddress
public 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.- Parameters:
sourceAddress
- New value for the property.
-
setTier0Path
public 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.- Parameters:
tier0Path
- New value for the property.
-
setTimeSinceEstablished
public PolicyBgpNeighborStatus.Builder setTimeSinceEstablished(java.lang.Long timeSinceEstablished)
Time(in seconds) since connection was 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.- Parameters:
timeSinceEstablished
- New value for the property.
-
setTotalInPrefixCount
public PolicyBgpNeighborStatus.Builder setTotalInPrefixCount(java.lang.Long totalInPrefixCount)
Sum of in prefixes counts across all address families. 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.- Parameters:
totalInPrefixCount
- New value for the property.
-
setTotalOutPrefixCount
public PolicyBgpNeighborStatus.Builder setTotalOutPrefixCount(java.lang.Long totalOutPrefixCount)
Sum of out prefixes counts across all address families. 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.- Parameters:
totalOutPrefixCount
- New value for the property.
-
setType
public PolicyBgpNeighborStatus.Builder setType(java.lang.String type)
Possible values are: 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.- Parameters:
type
- New value for the property.
-
build
public PolicyBgpNeighborStatus build()
-
-