Package org.onosproject.net.domain
Class DomainPointToPointIntent.Builder
- java.lang.Object
-
- org.onosproject.net.intent.Intent.Builder
-
- org.onosproject.net.domain.DomainIntent.Builder
-
- org.onosproject.net.domain.DomainPointToPointIntent.Builder
-
- Enclosing class:
- DomainPointToPointIntent
public static final class DomainPointToPointIntent.Builder extends DomainIntent.Builder
Builder of a point to point domain intent.
-
-
Field Summary
-
Fields inherited from class org.onosproject.net.domain.DomainIntent.Builder
constraints, treatment
-
Fields inherited from class org.onosproject.net.intent.Intent.Builder
appId, key, priority, resourceGroup, resources
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainPointToPointIntent.Builder
appId(ApplicationId appId)
Sets the application id for the intent that will be built.DomainPointToPointIntent
build()
Builds a point to point domain intent from the accumulated parameters.DomainPointToPointIntent.Builder
constraints(List<Constraint> constraints)
Sets the constraints for the intent that will be built.DomainPointToPointIntent.Builder
filteredEgressPoint(FilteredConnectPoint egressPoint)
Sets the filtered egress point of the domain point to point intent that will be built.DomainPointToPointIntent.Builder
filteredIngressPoint(FilteredConnectPoint ingressPoint)
Sets the filtered ingress point of the domain point to point intent that will be built.DomainPointToPointIntent.Builder
key(Key key)
Sets the key for the intent that will be built.DomainPointToPointIntent.Builder
links(List<Link> links)
Sets the links of the point to domain point intent that will be built.DomainPointToPointIntent.Builder
priority(int priority)
Sets the priority for the intent that will be built.DomainPointToPointIntent.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
-
-
-
-
Method Detail
-
appId
public DomainPointToPointIntent.Builder appId(ApplicationId appId)
Description copied from class:Intent.Builder
Sets the application id for the intent that will be built.- Overrides:
appId
in classDomainIntent.Builder
- Parameters:
appId
- application id to use for built intent- Returns:
- this builder
-
key
public DomainPointToPointIntent.Builder key(Key key)
Description copied from class:Intent.Builder
Sets the key for the intent that will be built.- Overrides:
key
in classDomainIntent.Builder
- Parameters:
key
- key to use for built intent- Returns:
- this builder
-
priority
public DomainPointToPointIntent.Builder priority(int priority)
Description copied from class:Intent.Builder
Sets the priority for the intent that will be built.- Overrides:
priority
in classDomainIntent.Builder
- Parameters:
priority
- priority to use for built intent- Returns:
- this builder
-
treatment
public DomainPointToPointIntent.Builder treatment(TrafficTreatment treatment)
Description copied from class:DomainIntent.Builder
Sets the traffic treatment for the intent that will be built.- Overrides:
treatment
in classDomainIntent.Builder
- Parameters:
treatment
- treatment to use for built intent- Returns:
- this builder
-
constraints
public DomainPointToPointIntent.Builder constraints(List<Constraint> constraints)
Description copied from class:DomainIntent.Builder
Sets the constraints for the intent that will be built.- Overrides:
constraints
in classDomainIntent.Builder
- Parameters:
constraints
- constraints to use for built intent- Returns:
- this builder
-
filteredIngressPoint
public DomainPointToPointIntent.Builder filteredIngressPoint(FilteredConnectPoint ingressPoint)
Sets the filtered ingress point of the domain point to point intent that will be built.- Parameters:
ingressPoint
- single ingress connect point- Returns:
- this builder
-
filteredEgressPoint
public DomainPointToPointIntent.Builder filteredEgressPoint(FilteredConnectPoint egressPoint)
Sets the filtered egress point of the domain point to point intent that will be built.- Parameters:
egressPoint
- single egress connect point- Returns:
- this builder
-
links
public DomainPointToPointIntent.Builder links(List<Link> links)
Sets the links of the point to domain point intent that will be built.- Parameters:
links
- links for the intent- Returns:
- this builder
-
build
public DomainPointToPointIntent build()
Builds a point to point domain intent from the accumulated parameters.- Returns:
- point to point domain intent
-
-