Package org.onosproject.net.domain
Class DomainIntent.Builder
- java.lang.Object
-
- org.onosproject.net.intent.Intent.Builder
-
- org.onosproject.net.domain.DomainIntent.Builder
-
- Direct Known Subclasses:
DomainPointToPointIntent.Builder
- Enclosing class:
- DomainIntent
public abstract static class DomainIntent.Builder extends Intent.Builder
Abstract builder for connectivity intents.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Constraint>constraintsprotected TrafficTreatmenttreatment-
Fields inherited from class org.onosproject.net.intent.Intent.Builder
appId, key, priority, resourceGroup, resources
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()Creates a new empty builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainIntent.BuilderappId(ApplicationId appId)Sets the application id for the intent that will be built.DomainIntent.Builderconstraints(List<Constraint> constraints)Sets the constraints for the intent that will be built.DomainIntent.Builderkey(Key key)Sets the key for the intent that will be built.DomainIntent.Builderpriority(int priority)Sets the priority for the intent that will be built.DomainIntent.Buildertreatment(TrafficTreatment treatment)Sets the traffic treatment for the intent that will be built.-
Methods inherited from class org.onosproject.net.intent.Intent.Builder
resourceGroup, resources
-
-
-
-
Field Detail
-
constraints
protected List<Constraint> constraints
-
treatment
protected TrafficTreatment treatment
-
-
Method Detail
-
appId
public DomainIntent.Builder appId(ApplicationId appId)
Description copied from class:Intent.BuilderSets the application id for the intent that will be built.- Overrides:
appIdin classIntent.Builder- Parameters:
appId- application id to use for built intent- Returns:
- this builder
-
key
public DomainIntent.Builder key(Key key)
Description copied from class:Intent.BuilderSets the key for the intent that will be built.- Overrides:
keyin classIntent.Builder- Parameters:
key- key to use for built intent- Returns:
- this builder
-
priority
public DomainIntent.Builder priority(int priority)
Description copied from class:Intent.BuilderSets the priority for the intent that will be built.- Overrides:
priorityin classIntent.Builder- Parameters:
priority- priority to use for built intent- Returns:
- this builder
-
treatment
public DomainIntent.Builder treatment(TrafficTreatment treatment)
Sets the traffic treatment for the intent that will be built.- Parameters:
treatment- treatment to use for built intent- Returns:
- this builder
-
constraints
public DomainIntent.Builder constraints(List<Constraint> constraints)
Sets the constraints for the intent that will be built.- Parameters:
constraints- constraints to use for built intent- Returns:
- this builder
-
-