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.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 ProtectedTransportIntent.Builder
appId(ApplicationId appId)
Sets the application id for the intent that will be built.ProtectedTransportIntent
build()
Builds a point to point intent from the accumulated parameters.ProtectedTransportIntent.Builder
constraints(java.util.List<Constraint> constraints)
Sets the constraints for the intent that will be built.ProtectedTransportIntent.Builder
key(Key key)
Sets the key for the intent that will be built.ProtectedTransportIntent.Builder
one(DeviceId one)
Sets the transport endpoint device one.ProtectedTransportIntent.Builder
priority(int priority)
Sets the priority for the intent that will be built.ProtectedTransportIntent.Builder
resourceGroup(ResourceGroup resourceGroup)
Sets the resource group for this intent.ProtectedTransportIntent.Builder
selector(TrafficSelector selector)
Sets the traffic selector for the intent that will be built.ProtectedTransportIntent.Builder
treatment(TrafficTreatment treatment)
Sets the traffic treatment for the intent that will be built.ProtectedTransportIntent.Builder
two(DeviceId two)
Sets the transport endpoint device two.-
Methods inherited from class org.onosproject.net.intent.Intent.Builder
resources
-
-
-
-
Method Detail
-
appId
public ProtectedTransportIntent.Builder appId(ApplicationId appId)
Description copied from class:Intent.Builder
Sets the application id for the intent that will be built.- Overrides:
appId
in classConnectivityIntent.Builder
- Parameters:
appId
- application id to use for built intent- Returns:
- this builder
-
key
public ProtectedTransportIntent.Builder key(Key key)
Description copied from class:Intent.Builder
Sets the key for the intent that will be built.- Overrides:
key
in classConnectivityIntent.Builder
- Parameters:
key
- key to use for built intent- Returns:
- this builder
-
selector
public ProtectedTransportIntent.Builder selector(TrafficSelector selector)
Description copied from class:ConnectivityIntent.Builder
Sets the traffic selector for the intent that will be built.- Overrides:
selector
in classConnectivityIntent.Builder
- Parameters:
selector
- selector to use for built intent- Returns:
- this builder
-
treatment
public ProtectedTransportIntent.Builder treatment(TrafficTreatment treatment)
Description copied from class:ConnectivityIntent.Builder
Sets the traffic treatment for the intent that will be built.- Overrides:
treatment
in classConnectivityIntent.Builder
- Parameters:
treatment
- treatment to use for built intent- Returns:
- this builder
-
constraints
public ProtectedTransportIntent.Builder constraints(java.util.List<Constraint> constraints)
Description copied from class:ConnectivityIntent.Builder
Sets the constraints for the intent that will be built.- Overrides:
constraints
in classConnectivityIntent.Builder
- Parameters:
constraints
- constraints to use for built intent- Returns:
- this builder
-
priority
public ProtectedTransportIntent.Builder priority(int priority)
Description copied from class:Intent.Builder
Sets the priority for the intent that will be built.- Overrides:
priority
in classConnectivityIntent.Builder
- Parameters:
priority
- priority to use for built intent- Returns:
- this builder
-
resourceGroup
public ProtectedTransportIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Description copied from class:Intent.Builder
Sets the resource group for this intent.- Overrides:
resourceGroup
in classIntent.Builder
- Parameters:
resourceGroup
- the resource group- Returns:
- this builder
-
one
public ProtectedTransportIntent.Builder one(DeviceId one)
Sets the transport endpoint device one.- Parameters:
one
- transport endpoint device- Returns:
- this builder
-
two
public ProtectedTransportIntent.Builder two(DeviceId two)
Sets the transport endpoint device two.- Parameters:
two
- transport endpoint device- Returns:
- this builder
-
build
public ProtectedTransportIntent build()
Builds a point to point intent from the accumulated parameters.- Returns:
- point to point intent
-
-