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.ObjectBuilder for DefaultLink objects.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultLink.Builderannotations(Annotations annotations)Sets the annotations to be used by the builder.DefaultLinkbuild()Builds a default link object from the accumulated parameters.DefaultLink.Builderdst(ConnectPoint dst)Sets the destination connect point to be used by the builder.DefaultLink.BuilderisExpected(boolean isExpected)Sets the expected flag to be used by the builder.DefaultLink.BuilderproviderId(ProviderId providerId)Sets the providerId to be used by the builder.DefaultLink.Buildersrc(ConnectPoint src)Sets the source connect point to be used by the builder.DefaultLink.Builderstate(Link.State state)Sets the link state to be used by the builder.DefaultLink.Buildertype(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
-
-