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 SummaryFields Modifier and Type Field Description protected java.util.List<Constraint>constraintsprotected TrafficTreatmenttreatment- 
Fields inherited from class org.onosproject.net.intent.Intent.BuilderappId, key, priority, resourceGroup, resources
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()Creates a new empty builder.
 - 
Method SummaryAll 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(java.util.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.BuilderresourceGroup, resources
 
- 
 
- 
- 
- 
Field Detail- 
constraintsprotected java.util.List<Constraint> constraints 
 - 
treatmentprotected TrafficTreatment treatment 
 
- 
 - 
Method Detail- 
appIdpublic DomainIntent.Builder appId(ApplicationId appId) Description copied from class:Intent.BuilderSets the application id for the intent that will be built.- Overrides:
- appIdin class- Intent.Builder
- Parameters:
- appId- application id to use for built intent
- Returns:
- this builder
 
 - 
keypublic DomainIntent.Builder key(Key key) Description copied from class:Intent.BuilderSets the key for the intent that will be built.- Overrides:
- keyin class- Intent.Builder
- Parameters:
- key- key to use for built intent
- Returns:
- this builder
 
 - 
prioritypublic DomainIntent.Builder priority(int priority) Description copied from class:Intent.BuilderSets the priority for the intent that will be built.- Overrides:
- priorityin class- Intent.Builder
- Parameters:
- priority- priority to use for built intent
- Returns:
- this builder
 
 - 
treatmentpublic 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
 
 - 
constraintspublic DomainIntent.Builder constraints(java.util.List<Constraint> constraints) Sets the constraints for the intent that will be built.- Parameters:
- constraints- constraints to use for built intent
- Returns:
- this builder
 
 
- 
 
-