public abstract static class ConnectivityIntent.Builder extends Intent.Builder
| Modifier and Type | Field and Description | 
|---|---|
protected 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(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, resourcesprotected TrafficSelector selector
protected TrafficTreatment treatment
protected List<Constraint> constraints
protected Builder()
protected Builder(ConnectivityIntent intent)
intent - initial intentpublic ConnectivityIntent.Builder appId(ApplicationId appId)
Intent.BuilderappId in class Intent.BuilderappId - application id to use for built intentpublic ConnectivityIntent.Builder key(Key key)
Intent.Builderkey in class Intent.Builderkey - key to use for built intentpublic ConnectivityIntent.Builder priority(int priority)
Intent.Builderpriority in class Intent.Builderpriority - 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(List<Constraint> constraints)
constraints - constraints to use for built intent