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>
constraints
protected TrafficTreatment
treatment
-
Fields inherited from class org.onosproject.net.intent.Intent.Builder
appId, key, priority, resourceGroup, resources
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
Creates a new empty builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainIntent.Builder
appId(ApplicationId appId)
Sets the application id for the intent that will be built.DomainIntent.Builder
constraints(List<Constraint> constraints)
Sets the constraints for the intent that will be built.DomainIntent.Builder
key(Key key)
Sets the key for the intent that will be built.DomainIntent.Builder
priority(int priority)
Sets the priority for the intent that will be built.DomainIntent.Builder
treatment(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.Builder
Sets the application id for the intent that will be built.- Overrides:
appId
in 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.Builder
Sets the key for the intent that will be built.- Overrides:
key
in 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.Builder
Sets the priority for the intent that will be built.- Overrides:
priority
in 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
-
-