public abstract static class Intent.Builder extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected ApplicationId | 
appId  | 
protected Key | 
key  | 
protected int | 
priority  | 
protected ResourceGroup | 
resourceGroup  | 
protected Collection<NetworkResource> | 
resources  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
Builder()
Creates a new empty builder. 
 | 
protected  | 
Builder(Intent intent)
Creates a new builder pre-populated with the information in the given
 intent. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Intent.Builder | 
appId(ApplicationId appId)
Sets the application id for the intent that will be built. 
 | 
Intent.Builder | 
key(Key key)
Sets the key for the intent that will be built. 
 | 
Intent.Builder | 
priority(int priority)
Sets the priority for the intent that will be built. 
 | 
Intent.Builder | 
resourceGroup(ResourceGroup resourceGroup)
Sets the resource group for this intent. 
 | 
Intent.Builder | 
resources(Collection<NetworkResource> resources)
Sets the collection of resources required for this intent. 
 | 
protected ApplicationId appId
protected Key key
protected int priority
protected Collection<NetworkResource> resources
protected ResourceGroup resourceGroup
protected Builder()
protected Builder(Intent intent)
intent - initial intentpublic Intent.Builder appId(ApplicationId appId)
appId - application id to use for built intentpublic Intent.Builder key(Key key)
key - key to use for built intentpublic Intent.Builder priority(int priority)
priority - priority to use for built intentpublic Intent.Builder resources(Collection<NetworkResource> resources)
resources - collection of resourcespublic Intent.Builder resourceGroup(ResourceGroup resourceGroup)
resourceGroup - the resource group