Package com.tick42.glue.desktop.intents

# Class IntentRequest.Builder

java.lang.Object
com.tick42.glue.desktop.intents.IntentRequest.Builder

Enclosing class:
  IntentRequest

    public static class IntentRequest.Builder
    extends Object

Builder for `IntentRequest`s.

Since:
  1.4.1
See Also:
  `IntentRequest.intent(String)`

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `IntentRequest` | `build()` | Creates a new `IntentRequest` instance.
  `IntentRequest.Builder` | `withContext​(IntentContext<?> context)` |
  `<T> IntentRequest.Builder` | `withContext​(String type, T data)` |
  `IntentRequest.Builder` | `withOptions​(Map<String,​Object> options)` | Sets application start options for this Intent request builder.
  `IntentRequest.Builder` | `withTarget​(IntentTarget target)` | Sets target for this Intent request builder.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### withTarget

    public IntentRequest.Builder withTarget​(IntentTarget target)
    Sets target for this Intent request builder.
    Parameters:
      `target` - Intent target, must not be `null`
    Returns:
      This builder, never `null`

  - ### withContext

    public IntentRequest.Builder withContext​(IntentContext<?> context)

  - ### withContext

    public <T> IntentRequest.Builder withContext​(String type, T data)

  - ### withOptions

    public IntentRequest.Builder withOptions​(Map<String,​Object> options)
    Sets application start options for this Intent request builder.
    Parameters:
      `options` - application start options, must not be `null`
    Returns:
      This builder, never `null`

  - ### build

    public IntentRequest build()
    Creates a new `IntentRequest` instance.
    Returns:
      A new `IntentRequest` instance, never `null`