Package org.onosproject.net.intent
Class PointToPointIntent.Builder
- java.lang.Object
-
- org.onosproject.net.intent.Intent.Builder
-
- org.onosproject.net.intent.ConnectivityIntent.Builder
-
- org.onosproject.net.intent.PointToPointIntent.Builder
-
- Enclosing class:
- PointToPointIntent
public static final class PointToPointIntent.Builder extends ConnectivityIntent.Builder
Builder of a point to point intent.
-
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.ConnectivityIntent.Builder
constraints, selector, 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 PointToPointIntent.BuilderappId(ApplicationId appId)Sets the application id for the intent that will be built.PointToPointIntentbuild()Builds a point to point intent from the accumulated parameters.PointToPointIntent.Builderconstraints(List<Constraint> constraints)Sets the constraints for the intent that will be built.PointToPointIntent.BuilderfilteredEgressPoint(FilteredConnectPoint egressPoint)Sets the filtered egress point of the point to point intent that will be built.PointToPointIntent.BuilderfilteredIngressPoint(FilteredConnectPoint ingressPoint)Sets the filtered ingress point of the point to point intent that will be built.PointToPointIntent.Builderkey(Key key)Sets the key for the intent that will be built.PointToPointIntent.Builderpriority(int priority)Sets the priority for the intent that will be built.PointToPointIntent.BuilderresourceGroup(ResourceGroup resourceGroup)Sets the resource group for this intent.PointToPointIntent.Builderselector(TrafficSelector selector)Sets the traffic selector for the intent that will be built.PointToPointIntent.BuildersuggestedPath(List<Link> links)Sets the suggested path as list of links.PointToPointIntent.Buildertreatment(TrafficTreatment treatment)Sets the traffic treatment for the intent that will be built.-
Methods inherited from class org.onosproject.net.intent.Intent.Builder
resources
-
-
-
-
Method Detail
-
appId
public PointToPointIntent.Builder appId(ApplicationId appId)
Description copied from class:Intent.BuilderSets the application id for the intent that will be built.- Overrides:
appIdin classConnectivityIntent.Builder- Parameters:
appId- application id to use for built intent- Returns:
- this builder
-
key
public PointToPointIntent.Builder key(Key key)
Description copied from class:Intent.BuilderSets the key for the intent that will be built.- Overrides:
keyin classConnectivityIntent.Builder- Parameters:
key- key to use for built intent- Returns:
- this builder
-
selector
public PointToPointIntent.Builder selector(TrafficSelector selector)
Description copied from class:ConnectivityIntent.BuilderSets the traffic selector for the intent that will be built.- Overrides:
selectorin classConnectivityIntent.Builder- Parameters:
selector- selector to use for built intent- Returns:
- this builder
-
treatment
public PointToPointIntent.Builder treatment(TrafficTreatment treatment)
Description copied from class:ConnectivityIntent.BuilderSets the traffic treatment for the intent that will be built.- Overrides:
treatmentin classConnectivityIntent.Builder- Parameters:
treatment- treatment to use for built intent- Returns:
- this builder
-
constraints
public PointToPointIntent.Builder constraints(List<Constraint> constraints)
Description copied from class:ConnectivityIntent.BuilderSets the constraints for the intent that will be built.- Overrides:
constraintsin classConnectivityIntent.Builder- Parameters:
constraints- constraints to use for built intent- Returns:
- this builder
-
priority
public PointToPointIntent.Builder priority(int priority)
Description copied from class:Intent.BuilderSets the priority for the intent that will be built.- Overrides:
priorityin classConnectivityIntent.Builder- Parameters:
priority- priority to use for built intent- Returns:
- this builder
-
resourceGroup
public PointToPointIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Description copied from class:Intent.BuilderSets the resource group for this intent.- Overrides:
resourceGroupin classIntent.Builder- Parameters:
resourceGroup- the resource group- Returns:
- this builder
-
filteredIngressPoint
public PointToPointIntent.Builder filteredIngressPoint(FilteredConnectPoint ingressPoint)
Sets the filtered ingress point of the point to point intent that will be built.- Parameters:
ingressPoint- filtered ingress connect point- Returns:
- this builder
-
filteredEgressPoint
public PointToPointIntent.Builder filteredEgressPoint(FilteredConnectPoint egressPoint)
Sets the filtered egress point of the point to point intent that will be built.- Parameters:
egressPoint- filtered egress connect point- Returns:
- this builder
-
suggestedPath
public PointToPointIntent.Builder suggestedPath(List<Link> links)
Sets the suggested path as list of links.- Parameters:
links- list of suggested links- Returns:
- this builder
-
build
public PointToPointIntent build()
Builds a point to point intent from the accumulated parameters.- Returns:
- point to point intent
-
-