public static class OpticalPathIntent.Builder extends Intent.Builder
appId, priority, resourceGroup, resources
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
OpticalPathIntent.Builder |
appId(ApplicationId appId)
Sets the application id for the intent that will be built.
|
OpticalPathIntent.Builder |
bidirectional(boolean isBidirectional)
Sets the intent's direction.
|
OpticalPathIntent |
build()
Builds an optical path intent from the accumulated parameters.
|
OpticalPathIntent.Builder |
dst(ConnectPoint dst)
Sets the destination for the intent that will be built.
|
OpticalPathIntent.Builder |
key(Key key)
Sets the key for the intent that will be built.
|
OpticalPathIntent.Builder |
lambda(OchSignal lambda)
Sets the optical channel (lambda) for the intent that will be built.
|
OpticalPathIntent.Builder |
path(Path path)
Sets the path for the intent that will be built.
|
OpticalPathIntent.Builder |
priority(int priority)
Sets the priority for the intent that will be built.
|
OpticalPathIntent.Builder |
resourceGroup(ResourceGroup resourceGroup)
Sets the resource group for this intent.
|
OpticalPathIntent.Builder |
signalType(OchSignalType signalType)
Sets the optical signal type for the intent that will be built.
|
OpticalPathIntent.Builder |
src(ConnectPoint src)
Sets the source for the intent that will be built.
|
resources
public OpticalPathIntent.Builder appId(ApplicationId appId)
Intent.Builder
appId
in class Intent.Builder
appId
- application id to use for built intentpublic OpticalPathIntent.Builder key(Key key)
Intent.Builder
key
in class Intent.Builder
key
- key to use for built intentpublic OpticalPathIntent.Builder priority(int priority)
Intent.Builder
priority
in class Intent.Builder
priority
- priority to use for built intentpublic OpticalPathIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Intent.Builder
resourceGroup
in class Intent.Builder
resourceGroup
- the resource grouppublic OpticalPathIntent.Builder src(ConnectPoint src)
src
- source to use for built intentpublic OpticalPathIntent.Builder dst(ConnectPoint dst)
dst
- dest to use for built intentpublic OpticalPathIntent.Builder path(Path path)
path
- path to use for built intentpublic OpticalPathIntent.Builder lambda(OchSignal lambda)
lambda
- the optical channelpublic OpticalPathIntent.Builder signalType(OchSignalType signalType)
signalType
- the optical signal typepublic OpticalPathIntent.Builder bidirectional(boolean isBidirectional)
isBidirectional
- indicates if intent is bidirectionalpublic OpticalPathIntent build()