public static final class LinkCollectionIntent.Builder extends ConnectivityIntent.Builder
constraints, selector, treatmentappId, key, priority| Modifier and Type | Method and Description |
|---|---|
LinkCollectionIntent.Builder |
appId(ApplicationId appId)
Sets the application id for the intent that will be built.
|
LinkCollectionIntent.Builder |
applyTreatmentOnEgress(boolean treatmentOnEgress)
Sets the intent to apply treatment at the egress rather than the
ingress.
|
LinkCollectionIntent |
build()
Builds a single point to multi point intent from the
accumulated parameters.
|
LinkCollectionIntent.Builder |
constraints(List<Constraint> constraints)
Sets the constraints for the intent that will be built.
|
LinkCollectionIntent.Builder |
egressPoints(Set<ConnectPoint> egressPoints)
Sets the egress points of the single point to multi point intent
that will be built.
|
LinkCollectionIntent.Builder |
egressTreatments(Map<ConnectPoint,TrafficTreatment> egressTreatments)
Sets the map egress treatments to connection points of the intent.
|
LinkCollectionIntent.Builder |
ingressPoints(Set<ConnectPoint> ingressPoints)
Sets the ingress point of the single point to multi point intent
that will be built.
|
LinkCollectionIntent.Builder |
ingressSelectors(Map<ConnectPoint,TrafficSelector> ingressSelectors)
Sets the map ingress selectors to connection points of the intent.
|
LinkCollectionIntent.Builder |
key(Key key)
Sets the key for the intent that will be built.
|
LinkCollectionIntent.Builder |
links(Set<Link> links)
Sets the links of the link collection intent
that will be built.
|
LinkCollectionIntent.Builder |
priority(int priority)
Sets the priority for the intent that will be built.
|
LinkCollectionIntent.Builder |
selector(TrafficSelector selector)
Sets the traffic selector for the intent that will be built.
|
LinkCollectionIntent.Builder |
treatment(TrafficTreatment treatment)
Sets the traffic treatment for the intent that will be built.
|
public LinkCollectionIntent.Builder appId(ApplicationId appId)
Intent.BuilderappId in class ConnectivityIntent.BuilderappId - application id to use for built intentpublic LinkCollectionIntent.Builder key(Key key)
Intent.Builderkey in class ConnectivityIntent.Builderkey - key to use for built intentpublic LinkCollectionIntent.Builder selector(TrafficSelector selector)
ConnectivityIntent.Builderselector in class ConnectivityIntent.Builderselector - selector to use for built intentpublic LinkCollectionIntent.Builder treatment(TrafficTreatment treatment)
ConnectivityIntent.Buildertreatment in class ConnectivityIntent.Buildertreatment - treatment to use for built intentpublic LinkCollectionIntent.Builder constraints(List<Constraint> constraints)
ConnectivityIntent.Builderconstraints in class ConnectivityIntent.Builderconstraints - constraints to use for built intentpublic LinkCollectionIntent.Builder priority(int priority)
Intent.Builderpriority in class ConnectivityIntent.Builderpriority - priority to use for built intentpublic LinkCollectionIntent.Builder ingressPoints(Set<ConnectPoint> ingressPoints)
ingressPoints - ingress connect pointspublic LinkCollectionIntent.Builder egressPoints(Set<ConnectPoint> egressPoints)
egressPoints - egress connect pointspublic LinkCollectionIntent.Builder ingressSelectors(Map<ConnectPoint,TrafficSelector> ingressSelectors)
ingressSelectors - maps connection point to traffic selectorpublic LinkCollectionIntent.Builder egressTreatments(Map<ConnectPoint,TrafficTreatment> egressTreatments)
egressTreatments - maps connection point to traffic treatmentpublic LinkCollectionIntent.Builder links(Set<Link> links)
links - links for the intentpublic LinkCollectionIntent.Builder applyTreatmentOnEgress(boolean treatmentOnEgress)
treatmentOnEgress - true applies treatment on egress devicepublic LinkCollectionIntent build()