public static class PathIntent.Builder extends ConnectivityIntent.Builder
constraints, selector, treatment
appId, key, priority, resourceGroup, resources
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
PathIntent.Builder |
appId(ApplicationId appId)
Sets the application id for the intent that will be built.
|
PathIntent |
build()
Builds a path intent from the accumulated parameters.
|
PathIntent.Builder |
constraints(java.util.List<Constraint> constraints)
Sets the constraints for the intent that will be built.
|
PathIntent.Builder |
key(Key key)
Sets the key for the intent that will be built.
|
PathIntent.Builder |
path(Path path)
Sets the path of the intent that will be built.
|
PathIntent.Builder |
priority(int priority)
Sets the priority for the intent that will be built.
|
PathIntent.Builder |
resourceGroup(ResourceGroup resourceGroup)
Sets the resource group for this intent.
|
PathIntent.Builder |
selector(TrafficSelector selector)
Sets the traffic selector for the intent that will be built.
|
PathIntent.Builder |
setType(PathIntent.ProtectionType type) |
PathIntent.Builder |
treatment(TrafficTreatment treatment)
Sets the traffic treatment for the intent that will be built.
|
resources
public PathIntent.Builder appId(ApplicationId appId)
Intent.Builder
appId
in class ConnectivityIntent.Builder
appId
- application id to use for built intentpublic PathIntent.Builder key(Key key)
Intent.Builder
key
in class ConnectivityIntent.Builder
key
- key to use for built intentpublic PathIntent.Builder selector(TrafficSelector selector)
ConnectivityIntent.Builder
selector
in class ConnectivityIntent.Builder
selector
- selector to use for built intentpublic PathIntent.Builder treatment(TrafficTreatment treatment)
ConnectivityIntent.Builder
treatment
in class ConnectivityIntent.Builder
treatment
- treatment to use for built intentpublic PathIntent.Builder constraints(java.util.List<Constraint> constraints)
ConnectivityIntent.Builder
constraints
in class ConnectivityIntent.Builder
constraints
- constraints to use for built intentpublic PathIntent.Builder priority(int priority)
Intent.Builder
priority
in class ConnectivityIntent.Builder
priority
- priority to use for built intentpublic PathIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Intent.Builder
resourceGroup
in class Intent.Builder
resourceGroup
- the resource grouppublic PathIntent.Builder path(Path path)
path
- path for the intentpublic PathIntent.Builder setType(PathIntent.ProtectionType type)
public PathIntent build()