public static final class DefaultVirtualLink.Builder extends DefaultLink.Builder
Modifier and Type | Method and Description |
---|---|
DefaultVirtualLink |
build()
Builds a default virtual link object from the accumulated parameters.
|
DefaultVirtualLink.Builder |
dst(ConnectPoint dst)
Sets the destination connect point to be used by the builder.
|
DefaultVirtualLink.Builder |
networkId(NetworkId networkId)
Sets the network identifier to be used by the builder.
|
DefaultVirtualLink.Builder |
src(ConnectPoint src)
Sets the source connect point to be used by the builder.
|
DefaultVirtualLink.Builder |
state(Link.State state)
Sets the link state to be used by the builder.
|
DefaultVirtualLink.Builder |
tunnelId(TunnelId tunnelId)
Sets the tunnel identifier to be used by the builder.
|
annotations, isExpected, providerId, type
public DefaultVirtualLink.Builder networkId(NetworkId networkId)
networkId
- network identifierpublic DefaultVirtualLink.Builder src(ConnectPoint src)
src
in class DefaultLink.Builder
src
- source connect pointpublic DefaultVirtualLink.Builder dst(ConnectPoint dst)
dst
in class DefaultLink.Builder
dst
- new destination connect pointpublic DefaultVirtualLink.Builder tunnelId(TunnelId tunnelId)
tunnelId
- tunnel identifierpublic DefaultVirtualLink.Builder state(Link.State state)
state
in class DefaultLink.Builder
state
- link statepublic DefaultVirtualLink build()
build
in class DefaultLink.Builder