Package org.onosproject.net.intent
Class OpticalOduIntent.Builder
- java.lang.Object
-
- org.onosproject.net.intent.Intent.Builder
-
- org.onosproject.net.intent.OpticalOduIntent.Builder
-
- Enclosing class:
- OpticalOduIntent
public static class OpticalOduIntent.Builder extends Intent.Builder
Builder for optical ODU intents.
-
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent.Builder
appId, key, priority, resourceGroup, resources
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpticalOduIntent.Builder
appId(ApplicationId appId)
Sets the application id for the intent that will be built.OpticalOduIntent.Builder
bidirectional(boolean isBidirectional)
Sets the directionality of the intent.OpticalOduIntent
build()
Builds an optical ODU intent from the accumulated parameters.OpticalOduIntent.Builder
dst(ConnectPoint dst)
Sets the destination for the intent that will be built.OpticalOduIntent.Builder
key(Key key)
Sets the key for the intent that will be built.OpticalOduIntent.Builder
priority(int priority)
Sets the priority for the intent that will be built.OpticalOduIntent.Builder
resourceGroup(ResourceGroup resourceGroup)
Sets the resource group for this intent.OpticalOduIntent.Builder
signalType(CltSignalType signalType)
Sets the ODU signal type for the intent that will be built.OpticalOduIntent.Builder
src(ConnectPoint src)
Sets the source for the intent that will be built.-
Methods inherited from class org.onosproject.net.intent.Intent.Builder
resources
-
-
-
-
Method Detail
-
appId
public OpticalOduIntent.Builder appId(ApplicationId appId)
Description copied from class:Intent.Builder
Sets the application id for the intent that will be built.- Overrides:
appId
in classIntent.Builder
- Parameters:
appId
- application id to use for built intent- Returns:
- this builder
-
key
public OpticalOduIntent.Builder key(Key key)
Description copied from class:Intent.Builder
Sets the key for the intent that will be built.- Overrides:
key
in classIntent.Builder
- Parameters:
key
- key to use for built intent- Returns:
- this builder
-
priority
public OpticalOduIntent.Builder priority(int priority)
Description copied from class:Intent.Builder
Sets the priority for the intent that will be built.- Overrides:
priority
in classIntent.Builder
- Parameters:
priority
- priority to use for built intent- Returns:
- this builder
-
resourceGroup
public OpticalOduIntent.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
-
src
public OpticalOduIntent.Builder src(ConnectPoint src)
Sets the source for the intent that will be built.- Parameters:
src
- source to use for built intent- Returns:
- this builder
-
dst
public OpticalOduIntent.Builder dst(ConnectPoint dst)
Sets the destination for the intent that will be built.- Parameters:
dst
- dest to use for built intent- Returns:
- this builder
-
signalType
public OpticalOduIntent.Builder signalType(CltSignalType signalType)
Sets the ODU signal type for the intent that will be built.- Parameters:
signalType
- signal type to use for built intent- Returns:
- this builder
-
bidirectional
public OpticalOduIntent.Builder bidirectional(boolean isBidirectional)
Sets the directionality of the intent.- Parameters:
isBidirectional
- true if bidirectional, false if unidirectional- Returns:
- this builder
-
build
public OpticalOduIntent build()
Builds an optical ODU intent from the accumulated parameters.- Returns:
- point to point intent
-
-