public abstract static class DomainIntent.Builder extends Intent.Builder
| Modifier and Type | Field and Description |
|---|---|
protected List<Constraint> |
constraints |
protected TrafficTreatment |
treatment |
appId, key, priority, resourceGroup, resources| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Creates a new empty builder.
|
| Modifier and Type | Method and Description |
|---|---|
DomainIntent.Builder |
appId(ApplicationId appId)
Sets the application id for the intent that will be built.
|
DomainIntent.Builder |
constraints(List<Constraint> constraints)
Sets the constraints for the intent that will be built.
|
DomainIntent.Builder |
key(Key key)
Sets the key for the intent that will be built.
|
DomainIntent.Builder |
priority(int priority)
Sets the priority for the intent that will be built.
|
DomainIntent.Builder |
treatment(TrafficTreatment treatment)
Sets the traffic treatment for the intent that will be built.
|
resourceGroup, resourcesprotected List<Constraint> constraints
protected TrafficTreatment treatment
public DomainIntent.Builder appId(ApplicationId appId)
Intent.BuilderappId in class Intent.BuilderappId - application id to use for built intentpublic DomainIntent.Builder key(Key key)
Intent.Builderkey in class Intent.Builderkey - key to use for built intentpublic DomainIntent.Builder priority(int priority)
Intent.Builderpriority in class Intent.Builderpriority - priority to use for built intentpublic DomainIntent.Builder treatment(TrafficTreatment treatment)
treatment - treatment to use for built intentpublic DomainIntent.Builder constraints(List<Constraint> constraints)
constraints - constraints to use for built intent