public static final class BgpNeighbor.Builder
extends java.lang.Object
BgpNeighbor
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
BgpNeighbor . |
Modifier and Type | Method and Description |
---|---|
BgpNeighbor |
build() |
BgpNeighbor.Builder |
setAddressFamilies(java.util.List<BgpNeighborAddressFamily> addressFamilies)
User can enable the neighbor for the specific address families and also define
filters per address family.
|
BgpNeighbor.Builder |
setAllowAsIn(java.lang.Boolean allowAsIn)
Flag to enable allowas_in option for BGP neighbor
|
BgpNeighbor.Builder |
setBfdConfig(BfdConfigParameters bfdConfig) |
BgpNeighbor.Builder |
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation 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.
|
BgpNeighbor.Builder |
setCreateUser(java.lang.String createUser)
ID of the user who created this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighbor.Builder |
setDescription(java.lang.String description)
Description of this resource
|
BgpNeighbor.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
BgpNeighbor.Builder |
setEnableBfd(java.lang.Boolean enableBfd)
Flag to enable BFD for this BGP Neighbor.
|
BgpNeighbor.Builder |
setEnabled(java.lang.Boolean enabled)
Flag to enable this BGP Neighbor
|
BgpNeighbor.Builder |
setFilterInIpprefixlistId(java.lang.String filterInIpprefixlistId)
This is a deprecated property, Please use 'address_family' instead.
|
BgpNeighbor.Builder |
setFilterInRoutemapId(java.lang.String filterInRoutemapId)
This is a deprecated property, Please use 'address_family' instead.
|
BgpNeighbor.Builder |
setFilterOutIpprefixlistId(java.lang.String filterOutIpprefixlistId)
This is a deprecated property, Please use 'address_family' instead.
|
BgpNeighbor.Builder |
setFilterOutRoutemapId(java.lang.String filterOutRoutemapId)
This is a deprecated property, Please use 'address_family' instead.
|
BgpNeighbor.Builder |
setGracefulRestartMode(java.lang.String gracefulRestartMode)
Possible values are:
BgpNeighbor.GRACEFUL_RESTART_MODE_DISABLE BgpNeighbor.GRACEFUL_RESTART_MODE_HELPER_ONLY
BgpNeighbor.GRACEFUL_RESTART_MODE_GR_AND_HELPER
BGP Graceful Restart mode. |
BgpNeighbor.Builder |
setHoldDownTimer(java.lang.Long holdDownTimer)
Wait period (seconds) before declaring peer dead format: int64
|
BgpNeighbor.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
BgpNeighbor.Builder |
setKeepAliveTimer(java.lang.Long keepAliveTimer)
Frequency (seconds) with which keep alive messages are sent to peers format:
int64
|
BgpNeighbor.Builder |
setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification 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.
|
BgpNeighbor.Builder |
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighbor.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
BgpNeighbor.Builder |
setLogicalRouterId(java.lang.String logicalRouterId)
Logical 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.
|
BgpNeighbor.Builder |
setMaximumHopLimit(java.lang.Long maximumHopLimit)
This value is set on TTL(time to live) of BGP header.
|
BgpNeighbor.Builder |
setNeighborAddress(java.lang.String neighborAddress)
Neighbor IP Address format: ip
|
BgpNeighbor.Builder |
setPassword(java.lang.String password)
User can create (POST) the neighbor with or without the password.
|
BgpNeighbor.Builder |
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
BgpNeighbor.Builder |
setRemoteAs(java.lang.Long remoteAs)
This is a deprecated property, Please use 'remote_as_num' instead.
|
BgpNeighbor.Builder |
setRemoteAsNum(java.lang.String remoteAsNum)
4 Byte ASN of the neighbor in ASPLAIN/ASDOT Format
|
BgpNeighbor.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
BgpNeighbor.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
BgpNeighbor.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighbor.Builder |
setSelf(SelfResourceLink self) |
BgpNeighbor.Builder |
setSourceAddress(java.lang.String sourceAddress)
Deprecated - do not provide a value for this field.
|
BgpNeighbor.Builder |
setSourceAddresses(java.util.List<java.lang.String> sourceAddresses)
BGP neighborship will be formed from all these source addresses to this
neighbour.
|
BgpNeighbor.Builder |
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BgpNeighbor.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
public Builder()
BgpNeighbor
.public BgpNeighbor.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public BgpNeighbor.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public BgpNeighbor.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public BgpNeighbor.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public BgpNeighbor.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public BgpNeighbor.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public BgpNeighbor.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public BgpNeighbor.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public BgpNeighbor.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public BgpNeighbor.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public BgpNeighbor.Builder setDescription(java.lang.String description)
description
- New value for the property.public BgpNeighbor.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public BgpNeighbor.Builder setId(java.lang.String id)
id
- New value for the property.public BgpNeighbor.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public BgpNeighbor.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public BgpNeighbor.Builder setAddressFamilies(java.util.List<BgpNeighborAddressFamily> addressFamilies)
addressFamilies
- New value for the property.public BgpNeighbor.Builder setAllowAsIn(java.lang.Boolean allowAsIn)
allowAsIn
- New value for the property.public BgpNeighbor.Builder setBfdConfig(BfdConfigParameters bfdConfig)
bfdConfig
- New value for the property.public BgpNeighbor.Builder setEnableBfd(java.lang.Boolean enableBfd)
enableBfd
- New value for the property.public BgpNeighbor.Builder setEnabled(java.lang.Boolean enabled)
enabled
- New value for the property.public BgpNeighbor.Builder setFilterInIpprefixlistId(java.lang.String filterInIpprefixlistId)
filterInIpprefixlistId
- New value for the property.public BgpNeighbor.Builder setFilterInRoutemapId(java.lang.String filterInRoutemapId)
filterInRoutemapId
- New value for the property.public BgpNeighbor.Builder setFilterOutIpprefixlistId(java.lang.String filterOutIpprefixlistId)
filterOutIpprefixlistId
- New value for the property.public BgpNeighbor.Builder setFilterOutRoutemapId(java.lang.String filterOutRoutemapId)
filterOutRoutemapId
- New value for the property.public BgpNeighbor.Builder setGracefulRestartMode(java.lang.String gracefulRestartMode)
gracefulRestartMode
- New value for the property.public BgpNeighbor.Builder setHoldDownTimer(java.lang.Long holdDownTimer)
holdDownTimer
- New value for the property.public BgpNeighbor.Builder setKeepAliveTimer(java.lang.Long keepAliveTimer)
keepAliveTimer
- New value for the property.public BgpNeighbor.Builder setLogicalRouterId(java.lang.String logicalRouterId)
logicalRouterId
- New value for the property.public BgpNeighbor.Builder setMaximumHopLimit(java.lang.Long maximumHopLimit)
maximumHopLimit
- New value for the property.public BgpNeighbor.Builder setNeighborAddress(java.lang.String neighborAddress)
neighborAddress
- New value for the property.public BgpNeighbor.Builder setPassword(java.lang.String password)
password
- New value for the property.public BgpNeighbor.Builder setRemoteAs(java.lang.Long remoteAs)
remoteAs
- New value for the property.public BgpNeighbor.Builder setRemoteAsNum(java.lang.String remoteAsNum)
remoteAsNum
- New value for the property.public BgpNeighbor.Builder setSourceAddress(java.lang.String sourceAddress)
sourceAddress
- New value for the property.public BgpNeighbor.Builder setSourceAddresses(java.util.List<java.lang.String> sourceAddresses)
sourceAddresses
- New value for the property.public BgpNeighbor build()