public static class LegacyEventSource.Event
extends java.lang.Object
Constructor and Description |
---|
Event(java.lang.String data,
java.lang.String id,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static LegacyEventSource.Event |
event(com.fasterxml.jackson.databind.JsonNode json) |
static LegacyEventSource.Event |
event(java.lang.String data) |
java.lang.String |
formatted() |
LegacyEventSource.Event |
withId(java.lang.String id) |
LegacyEventSource.Event |
withName(java.lang.String name) |
public Event(java.lang.String data, java.lang.String id, java.lang.String name)
public LegacyEventSource.Event withName(java.lang.String name)
name
- Event namename
public LegacyEventSource.Event withId(java.lang.String id)
id
- Event idid
.public java.lang.String formatted()
public static LegacyEventSource.Event event(java.lang.String data)
data
- Event contentdata
as contentpublic static LegacyEventSource.Event event(com.fasterxml.jackson.databind.JsonNode json)
json
- Json value to usejson
as content