Package org.onosproject.net.intent
Class ProtectedTransportIntent.Builder
- java.lang.Object
- 
- org.onosproject.net.intent.Intent.Builder
- 
- org.onosproject.net.intent.ConnectivityIntent.Builder
- 
- org.onosproject.net.intent.ProtectedTransportIntent.Builder
 
 
 
- 
- Enclosing class:
- ProtectedTransportIntent
 
 public static final class ProtectedTransportIntent.Builder extends ConnectivityIntent.Builder Builder forProtectedTransportIntent.
- 
- 
Field Summary- 
Fields inherited from class org.onosproject.net.intent.ConnectivityIntent.Builderconstraints, selector, treatment
 - 
Fields inherited from class org.onosproject.net.intent.Intent.BuilderappId, key, priority, resourceGroup, resources
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectedTransportIntent.BuilderappId(ApplicationId appId)Sets the application id for the intent that will be built.ProtectedTransportIntentbuild()Builds a point to point intent from the accumulated parameters.ProtectedTransportIntent.Builderconstraints(List<Constraint> constraints)Sets the constraints for the intent that will be built.ProtectedTransportIntent.Builderkey(Key key)Sets the key for the intent that will be built.ProtectedTransportIntent.Builderone(DeviceId one)Sets the transport endpoint device one.ProtectedTransportIntent.Builderpriority(int priority)Sets the priority for the intent that will be built.ProtectedTransportIntent.BuilderresourceGroup(ResourceGroup resourceGroup)Sets the resource group for this intent.ProtectedTransportIntent.Builderselector(TrafficSelector selector)Sets the traffic selector for the intent that will be built.ProtectedTransportIntent.Buildertreatment(TrafficTreatment treatment)Sets the traffic treatment for the intent that will be built.ProtectedTransportIntent.Buildertwo(DeviceId two)Sets the transport endpoint device two.- 
Methods inherited from class org.onosproject.net.intent.Intent.Builderresources
 
- 
 
- 
- 
- 
Method Detail- 
appIdpublic ProtectedTransportIntent.Builder appId(ApplicationId appId) Description copied from class:Intent.BuilderSets the application id for the intent that will be built.- Overrides:
- appIdin class- ConnectivityIntent.Builder
- Parameters:
- appId- application id to use for built intent
- Returns:
- this builder
 
 - 
keypublic ProtectedTransportIntent.Builder key(Key key) Description copied from class:Intent.BuilderSets the key for the intent that will be built.- Overrides:
- keyin class- ConnectivityIntent.Builder
- Parameters:
- key- key to use for built intent
- Returns:
- this builder
 
 - 
selectorpublic ProtectedTransportIntent.Builder selector(TrafficSelector selector) Description copied from class:ConnectivityIntent.BuilderSets the traffic selector for the intent that will be built.- Overrides:
- selectorin class- ConnectivityIntent.Builder
- Parameters:
- selector- selector to use for built intent
- Returns:
- this builder
 
 - 
treatmentpublic ProtectedTransportIntent.Builder treatment(TrafficTreatment treatment) Description copied from class:ConnectivityIntent.BuilderSets the traffic treatment for the intent that will be built.- Overrides:
- treatmentin class- ConnectivityIntent.Builder
- Parameters:
- treatment- treatment to use for built intent
- Returns:
- this builder
 
 - 
constraintspublic ProtectedTransportIntent.Builder constraints(List<Constraint> constraints) Description copied from class:ConnectivityIntent.BuilderSets the constraints for the intent that will be built.- Overrides:
- constraintsin class- ConnectivityIntent.Builder
- Parameters:
- constraints- constraints to use for built intent
- Returns:
- this builder
 
 - 
prioritypublic ProtectedTransportIntent.Builder priority(int priority) Description copied from class:Intent.BuilderSets the priority for the intent that will be built.- Overrides:
- priorityin class- ConnectivityIntent.Builder
- Parameters:
- priority- priority to use for built intent
- Returns:
- this builder
 
 - 
resourceGrouppublic ProtectedTransportIntent.Builder resourceGroup(ResourceGroup resourceGroup) Description copied from class:Intent.BuilderSets the resource group for this intent.- Overrides:
- resourceGroupin class- Intent.Builder
- Parameters:
- resourceGroup- the resource group
- Returns:
- this builder
 
 - 
onepublic ProtectedTransportIntent.Builder one(DeviceId one) Sets the transport endpoint device one.- Parameters:
- one- transport endpoint device
- Returns:
- this builder
 
 - 
twopublic ProtectedTransportIntent.Builder two(DeviceId two) Sets the transport endpoint device two.- Parameters:
- two- transport endpoint device
- Returns:
- this builder
 
 - 
buildpublic ProtectedTransportIntent build() Builds a point to point intent from the accumulated parameters.- Returns:
- point to point intent
 
 
- 
 
-