# Class PushMessage.Builder

java.lang.Object
com.codename1.push.PushMessage.Builder

Enclosing class:
  `PushMessage`

public static final class PushMessage.Builder extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `PushMessage.Builder`
  `body(String value)`
  `PushMessage`
  `build()`
  `PushMessage.Builder`
  `collapseKey(String value)`
  `PushMessage.Builder`
  `data(String key, Object value)`
  `PushMessage.Builder`
  `deepLink(String value)`
  `PushMessage.Builder`
  `id(String value)`
  `PushMessage.Builder`
  `imageUrl(String value)`
  `PushMessage.Builder`
  `platform(String platformId, Map<String,Object> options)`
  `PushMessage.Builder`
  `silent(boolean value)`
  `PushMessage.Builder`
  `surface(Map<String,Object> command)`
  `PushMessage.Builder`
  `title(String value)`
  `PushMessage.Builder`
  `ttlSeconds(int value)`

  ### Methods inherited from class Object

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

- ## Method Details

  - ### id

    public PushMessage.Builder id(String value)

  - ### title

    public PushMessage.Builder title(String value)

  - ### body

    public PushMessage.Builder body(String value)

  - ### imageUrl

    public PushMessage.Builder imageUrl(String value)

  - ### deepLink

    public PushMessage.Builder deepLink(String value)

  - ### collapseKey

    public PushMessage.Builder collapseKey(String value)

  - ### ttlSeconds

    public PushMessage.Builder ttlSeconds(int value)

  - ### silent

    public PushMessage.Builder silent(boolean value)

  - ### data

    public PushMessage.Builder data(String key, Object value)

  - ### platform

    public PushMessage.Builder platform(String platformId, Map<String,Object> options)

  - ### surface

    public PushMessage.Builder surface(Map<String,Object> command)

  - ### build

    public PushMessage build()