Class UpfInterface.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.UpfInterface.Builder
-
- Enclosing class:
- UpfInterface
public static class UpfInterface.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpfInterface
build()
UpfInterface.Builder
setAccess()
Make this an access-facing interface.UpfInterface.Builder
setAddress(Ip4Address address)
Set the IPv4 prefix of this interface, by turning the given address into a /32 prefix.UpfInterface.Builder
setCore()
Make this a core-facing interface.UpfInterface.Builder
setDbufReceiver()
Make this a dbuf-facing interface.UpfInterface.Builder
setPrefix(Ip4Prefix prefix)
Set the IPv4 prefix of this interface.
-
-
-
Method Detail
-
setPrefix
public UpfInterface.Builder setPrefix(Ip4Prefix prefix)
Set the IPv4 prefix of this interface.- Parameters:
prefix
- the interface prefix- Returns:
- this builder object
-
setAddress
public UpfInterface.Builder setAddress(Ip4Address address)
Set the IPv4 prefix of this interface, by turning the given address into a /32 prefix.- Parameters:
address
- the interface address that will become a /32 prefix- Returns:
- this builder object
-
setAccess
public UpfInterface.Builder setAccess()
Make this an access-facing interface.- Returns:
- this builder object
-
setCore
public UpfInterface.Builder setCore()
Make this a core-facing interface.- Returns:
- this builder object
-
setDbufReceiver
public UpfInterface.Builder setDbufReceiver()
Make this a dbuf-facing interface.- Returns:
- this builder object
-
build
public UpfInterface build()
-
-