Package org.onosproject.net
Class DefaultLink.Builder
- java.lang.Object
-
- org.onosproject.net.DefaultLink.Builder
-
- Enclosing class:
- DefaultLink
public static class DefaultLink.Builder extends java.lang.Object
Builder for DefaultLink objects.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
providerId
public DefaultLink.Builder providerId(ProviderId providerId)
Sets the providerId to be used by the builder.- Parameters:
providerId
- new provider id- Returns:
- self
-
annotations
public DefaultLink.Builder annotations(Annotations annotations)
Sets the annotations to be used by the builder.- Parameters:
annotations
- new annotations- Returns:
- self
-
src
public DefaultLink.Builder src(ConnectPoint src)
Sets the source connect point to be used by the builder.- Parameters:
src
- source connect point- Returns:
- self
-
dst
public DefaultLink.Builder dst(ConnectPoint dst)
Sets the destination connect point to be used by the builder.- Parameters:
dst
- new destination connect point- Returns:
- self
-
type
public DefaultLink.Builder type(Link.Type type)
Sets the link type to be used by the builder.- Parameters:
type
- new link type- Returns:
- self
-
state
public DefaultLink.Builder state(Link.State state)
Sets the link state to be used by the builder.- Parameters:
state
- new link state- Returns:
- self
-
isExpected
public DefaultLink.Builder isExpected(boolean isExpected)
Sets the expected flag to be used by the builder.- Parameters:
isExpected
- new expected flag- Returns:
- self
-
build
public DefaultLink build()
Builds a default link object from the accumulated parameters.- Returns:
- default link object
-
-