Package org.onosproject.net.behaviour
Class DefaultPatchDescription.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.DefaultPatchDescription.Builder
-
- All Implemented Interfaces:
PatchDescription.Builder
- Enclosing class:
- DefaultPatchDescription
public static final class DefaultPatchDescription.Builder extends java.lang.Object implements PatchDescription.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchDescription
build()
Returns new patch interface description.PatchDescription.Builder
deviceId(java.lang.String deviceId)
Returns new patch interface description.PatchDescription.Builder
ifaceName(java.lang.String ifaceName)
Returns patch interface description builder with a given interface name.PatchDescription.Builder
peer(java.lang.String peerName)
Returns patch interface description builder with a given peer.
-
-
-
Method Detail
-
build
public PatchDescription build()
Description copied from interface:PatchDescription.Builder
Returns new patch interface description.- Specified by:
build
in interfacePatchDescription.Builder
- Returns:
- patch interface description
-
deviceId
public PatchDescription.Builder deviceId(java.lang.String deviceId)
Description copied from interface:PatchDescription.Builder
Returns new patch interface description.- Specified by:
deviceId
in interfacePatchDescription.Builder
- Parameters:
deviceId
- device id- Returns:
- patch interface description builder
-
ifaceName
public PatchDescription.Builder ifaceName(java.lang.String ifaceName)
Description copied from interface:PatchDescription.Builder
Returns patch interface description builder with a given interface name.- Specified by:
ifaceName
in interfacePatchDescription.Builder
- Parameters:
ifaceName
- interface name- Returns:
- patch interface description builder
-
peer
public PatchDescription.Builder peer(java.lang.String peerName)
Description copied from interface:PatchDescription.Builder
Returns patch interface description builder with a given peer.- Specified by:
peer
in interfacePatchDescription.Builder
- Parameters:
peerName
- peer patch interface name- Returns:
- patch interface description builder
-
-