public static class DefaultLink.Builder
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultLink.Builder |
annotations(Annotations annotations)
Sets the annotations to be used by the builder.
|
DefaultLink |
build()
Builds a default link object from the accumulated parameters.
|
DefaultLink.Builder |
dst(ConnectPoint dst)
Sets the destination connect point to be used by the builder.
|
DefaultLink.Builder |
isExpected(boolean isExpected)
Sets the expected flag to be used by the builder.
|
DefaultLink.Builder |
providerId(ProviderId providerId)
Sets the providerId to be used by the builder.
|
DefaultLink.Builder |
src(ConnectPoint src)
Sets the source connect point to be used by the builder.
|
DefaultLink.Builder |
state(Link.State state)
Sets the link state to be used by the builder.
|
DefaultLink.Builder |
type(Link.Type type)
Sets the link type to be used by the builder.
|
public DefaultLink.Builder providerId(ProviderId providerId)
providerId
- new provider idpublic DefaultLink.Builder annotations(Annotations annotations)
annotations
- new annotationspublic DefaultLink.Builder src(ConnectPoint src)
src
- source connect pointpublic DefaultLink.Builder dst(ConnectPoint dst)
dst
- new destination connect pointpublic DefaultLink.Builder type(Link.Type type)
type
- new link typepublic DefaultLink.Builder state(Link.State state)
state
- new link statepublic DefaultLink.Builder isExpected(boolean isExpected)
isExpected
- new expected flagpublic DefaultLink build()