/** * @param json Json value to use * @return An event with a string representation of {@code json} as content */ public static Event event(JsonNode json) { return new Event(Json.stringify(json), null, null); }
/** * @param data Event content * @return An event with {@code data} as content */ public static Event event(String data) { return new Event(data, null, null); }
/** * @param id Event id * @return A copy of this event, with id {@code id}. */ public Event withId(String id) { return new Event(this.data, id, this.name); }
/** * @param data Event content * @return An event with {@code data} as content */ public static Event event(String data) { return new Event(data, null, null); }
/** * @param id Event id * @return A copy of this event, with id {@code id}. */ public Event withId(String id) { return new Event(this.data, id, this.name); }
/** * @param json Json value to use * @return An event with a string representation of {@code json} as content */ public static Event event(JsonNode json) { return new Event(Json.stringify(json), null, null); }
/** * @param id Event id * @return A copy of this event, with id {@code id}. */ public Event withId(String id) { return new Event(this.data, id, this.name); }
/** * @param name Event name * @return A copy of this event, with name {@code name} */ public Event withName(String name) { return new Event(this.data, this.id, name); }
/** * @param id Event id * @return A copy of this event, with id {@code id}. */ public Event withId(String id) { return new Event(this.data, id, this.name); }
/** * @param name Event name * @return A copy of this event, with name {@code name} */ public Event withName(String name) { return new Event(this.data, this.id, name); }
/** * @param data Event content * @return An event with {@code data} as content */ public static Event event(String data) { return new Event(data, null, null); }
/** * @param data Event content * @return An event with {@code data} as content */ public static Event event(String data) { return new Event(data, null, null); }
/** * @param name Event name * @return A copy of this event, with name {@code name} */ public Event withName(String name) { return new Event(this.data, this.id, name); }
/** * @param json Json value to use * @return An event with a string representation of {@code json} as content */ public static Event event(JsonNode json) { return new Event(Json.stringify(json), null, null); }
/** * @param name Event name * @return A copy of this event, with name {@code name} */ public Event withName(String name) { return new Event(this.data, this.id, name); }
/** * @param json Json value to use * @return An event with a string representation of {@code json} as content */ public static Event event(JsonNode json) { return new Event(Json.stringify(json), null, null); }