public static class OpticalConnectivityIntent.Builder extends Intent.Builder
appId, key, priority, resourceGroup, resources
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
OpticalConnectivityIntent.Builder |
appId(ApplicationId appId)
Sets the application id for the intent that will be built.
|
OpticalConnectivityIntent.Builder |
bidirectional(boolean isBidirectional)
Sets the directionality of the intent.
|
OpticalConnectivityIntent |
build()
Builds an optical connectivity intent from the accumulated parameters.
|
OpticalConnectivityIntent.Builder |
dst(ConnectPoint dst)
Sets the destination for the intent that will be built.
|
OpticalConnectivityIntent.Builder |
key(Key key)
Sets the key for the intent that will be built.
|
OpticalConnectivityIntent.Builder |
ochSignal(OchSignal ochSignal)
Sets the OCh signal of the intent.
|
OpticalConnectivityIntent.Builder |
priority(int priority)
Sets the priority for the intent that will be built.
|
OpticalConnectivityIntent.Builder |
resourceGroup(ResourceGroup resourceGroup)
Sets the resource group for this intent.
|
OpticalConnectivityIntent.Builder |
signalType(OduSignalType signalType)
Sets the ODU signal type for the intent that will be built.
|
OpticalConnectivityIntent.Builder |
src(ConnectPoint src)
Sets the source for the intent that will be built.
|
OpticalConnectivityIntent.Builder |
suggestedPath(Path suggestedPath)
Sets the suggestedPath of the intent.
|
resources
public OpticalConnectivityIntent.Builder appId(ApplicationId appId)
Intent.Builder
appId
in class Intent.Builder
appId
- application id to use for built intentpublic OpticalConnectivityIntent.Builder key(Key key)
Intent.Builder
key
in class Intent.Builder
key
- key to use for built intentpublic OpticalConnectivityIntent.Builder priority(int priority)
Intent.Builder
priority
in class Intent.Builder
priority
- priority to use for built intentpublic OpticalConnectivityIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Intent.Builder
resourceGroup
in class Intent.Builder
resourceGroup
- the resource grouppublic OpticalConnectivityIntent.Builder src(ConnectPoint src)
src
- source to use for built intentpublic OpticalConnectivityIntent.Builder dst(ConnectPoint dst)
dst
- dest to use for built intentpublic OpticalConnectivityIntent.Builder signalType(OduSignalType signalType)
signalType
- ODU signal typepublic OpticalConnectivityIntent.Builder bidirectional(boolean isBidirectional)
isBidirectional
- true if bidirectional, false if unidirectionalpublic OpticalConnectivityIntent.Builder ochSignal(OchSignal ochSignal)
ochSignal
- the lambdapublic OpticalConnectivityIntent.Builder suggestedPath(Path suggestedPath)
suggestedPath
- the pathpublic OpticalConnectivityIntent build()