public static final class LinkCollectionIntent.Builder extends ConnectivityIntent.Builder
constraints, selector, treatment
appId, key, priority, resourceGroup, resources
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 |
cost(double cost)
Sets the cost for the links of the Intent.
|
LinkCollectionIntent.Builder |
filteredEgressPoints(Set<FilteredConnectPoint> egressPoints)
Sets the filtered egress points of the single point to multi point intent
that will be built.
|
LinkCollectionIntent.Builder |
filteredIngressPoints(Set<FilteredConnectPoint> ingressPoints)
Sets the filtered ingress point of the single point to multi point intent
that will be built.
|
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 |
resourceGroup(ResourceGroup resourceGroup)
Sets the resource group for this intent.
|
LinkCollectionIntent.Builder |
resources(Collection<NetworkResource> resources)
Sets the collection of resources required for this intent.
|
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.Builder
appId
in class ConnectivityIntent.Builder
appId
- application id to use for built intentpublic LinkCollectionIntent.Builder key(Key key)
Intent.Builder
key
in class ConnectivityIntent.Builder
key
- key to use for built intentpublic LinkCollectionIntent.Builder selector(TrafficSelector selector)
ConnectivityIntent.Builder
selector
in class ConnectivityIntent.Builder
selector
- selector to use for built intentpublic LinkCollectionIntent.Builder treatment(TrafficTreatment treatment)
ConnectivityIntent.Builder
treatment
in class ConnectivityIntent.Builder
treatment
- treatment to use for built intentpublic LinkCollectionIntent.Builder constraints(List<Constraint> constraints)
ConnectivityIntent.Builder
constraints
in class ConnectivityIntent.Builder
constraints
- constraints to use for built intentpublic LinkCollectionIntent.Builder priority(int priority)
Intent.Builder
priority
in class ConnectivityIntent.Builder
priority
- priority to use for built intentpublic LinkCollectionIntent.Builder resources(Collection<NetworkResource> resources)
Intent.Builder
resources
in class Intent.Builder
resources
- collection of resourcespublic LinkCollectionIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Intent.Builder
resourceGroup
in class Intent.Builder
resourceGroup
- the resource grouppublic LinkCollectionIntent.Builder filteredIngressPoints(Set<FilteredConnectPoint> ingressPoints)
ingressPoints
- ingress connect pointspublic LinkCollectionIntent.Builder filteredEgressPoints(Set<FilteredConnectPoint> egressPoints)
egressPoints
- egress connect pointspublic LinkCollectionIntent.Builder links(Set<Link> links)
links
- links for the intentpublic LinkCollectionIntent.Builder applyTreatmentOnEgress(boolean treatmentOnEgress)
treatmentOnEgress
- true applies treatment on egress devicepublic LinkCollectionIntent.Builder cost(double cost)
cost
- the cost of the linkspublic LinkCollectionIntent build()