public abstract static class ConnectivityIntent.Builder extends Intent.Builder
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Constraint> |
constraints |
protected TrafficSelector |
selector |
protected TrafficTreatment |
treatment |
appId, key, priority, resourceGroup, resources
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Creates a new empty builder.
|
protected |
Builder(ConnectivityIntent intent)
Creates a new builder pre-populated with the information in the given
intent.
|
Modifier and Type | Method and Description |
---|---|
ConnectivityIntent.Builder |
appId(ApplicationId appId)
Sets the application id for the intent that will be built.
|
ConnectivityIntent.Builder |
constraints(java.util.List<Constraint> constraints)
Sets the constraints for the intent that will be built.
|
ConnectivityIntent.Builder |
key(Key key)
Sets the key for the intent that will be built.
|
ConnectivityIntent.Builder |
priority(int priority)
Sets the priority for the intent that will be built.
|
ConnectivityIntent.Builder |
selector(TrafficSelector selector)
Sets the traffic selector for the intent that will be built.
|
ConnectivityIntent.Builder |
treatment(TrafficTreatment treatment)
Sets the traffic treatment for the intent that will be built.
|
resourceGroup, resources
protected TrafficSelector selector
protected TrafficTreatment treatment
protected java.util.List<Constraint> constraints
protected Builder()
protected Builder(ConnectivityIntent intent)
intent
- initial intentpublic ConnectivityIntent.Builder appId(ApplicationId appId)
Intent.Builder
appId
in class Intent.Builder
appId
- application id to use for built intentpublic ConnectivityIntent.Builder key(Key key)
Intent.Builder
key
in class Intent.Builder
key
- key to use for built intentpublic ConnectivityIntent.Builder priority(int priority)
Intent.Builder
priority
in class Intent.Builder
priority
- priority to use for built intentpublic ConnectivityIntent.Builder selector(TrafficSelector selector)
selector
- selector to use for built intentpublic ConnectivityIntent.Builder treatment(TrafficTreatment treatment)
treatment
- treatment to use for built intentpublic ConnectivityIntent.Builder constraints(java.util.List<Constraint> constraints)
constraints
- constraints to use for built intent