public static final class TunnelProperties.Builder
extends java.lang.Object
TunnelProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
TunnelProperties . |
Modifier and Type | Method and Description |
---|---|
TunnelProperties |
build() |
TunnelProperties.Builder |
setBfd(BFDProperties bfd) |
TunnelProperties.Builder |
setEgressInterface(java.lang.String egressInterface)
Corresponds to the interface where local_ip_address is routed.
|
TunnelProperties.Builder |
setEncap(java.lang.String encap)
Possible values are:
TunnelProperties.ENCAP_STT TunnelProperties.ENCAP_VXLAN TunnelProperties.ENCAP_GENEVE TunnelProperties.ENCAP_NONE TunnelProperties.ENCAP_UNKNOWN_ENCAP Tunnel
encap
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
TunnelProperties.Builder |
setLastUpdatedTime(java.lang.Long lastUpdatedTime)
Time at which the Tunnel status has been fetched last time.
|
TunnelProperties.Builder |
setLatencyType(java.lang.String latencyType)
|
TunnelProperties.Builder |
setLatencyValue(java.lang.Long latencyValue)
The latency value is set only when latency_type is VALID.
|
TunnelProperties.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
TunnelProperties.Builder |
setLocalIp(java.lang.String localIp)
Local IP address of tunnel 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.
|
TunnelProperties.Builder |
setName(java.lang.String name)
Name of tunnel
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TunnelProperties.Builder |
setRemoteIp(java.lang.String remoteIp)
Remote IP address of tunnel 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.
|
TunnelProperties.Builder |
setRemoteNodeDisplayName(java.lang.String remoteNodeDisplayName)
Represents the display name of the remote transport node at the other end of the
tunnel.
|
TunnelProperties.Builder |
setRemoteNodeId(java.lang.String remoteNodeId)
UUID of the remote transport node
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TunnelProperties.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.
|
TunnelProperties.Builder |
setSelf(SelfResourceLink self) |
TunnelProperties.Builder |
setStatus(java.lang.String status)
Possible values are:
TunnelProperties.STATUS_UP TunnelProperties.STATUS_DOWN TunnelProperties.STATUS_UNKNOWN Status of
tunnel
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()
TunnelProperties
.public TunnelProperties.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public TunnelProperties.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public TunnelProperties.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public TunnelProperties.Builder setBfd(BFDProperties bfd)
bfd
- New value for the property.public TunnelProperties.Builder setEgressInterface(java.lang.String egressInterface)
egressInterface
- New value for the property.public TunnelProperties.Builder setEncap(java.lang.String encap)
encap
- New value for the property.public TunnelProperties.Builder setLastUpdatedTime(java.lang.Long lastUpdatedTime)
lastUpdatedTime
- New value for the property.public TunnelProperties.Builder setLatencyType(java.lang.String latencyType)
latencyType
- New value for the property.public TunnelProperties.Builder setLatencyValue(java.lang.Long latencyValue)
latencyValue
- New value for the property.public TunnelProperties.Builder setLocalIp(java.lang.String localIp)
localIp
- New value for the property.public TunnelProperties.Builder setName(java.lang.String name)
name
- New value for the property.public TunnelProperties.Builder setRemoteIp(java.lang.String remoteIp)
remoteIp
- New value for the property.public TunnelProperties.Builder setRemoteNodeDisplayName(java.lang.String remoteNodeDisplayName)
remoteNodeDisplayName
- New value for the property.public TunnelProperties.Builder setRemoteNodeId(java.lang.String remoteNodeId)
remoteNodeId
- New value for the property.public TunnelProperties.Builder setStatus(java.lang.String status)
status
- New value for the property.public TunnelProperties build()