public final class ExperienceEvent {
public static class Builder {
* Sets free form data associated with this event to be passed to Adobe Experience Edge.
* @param data free form data, JSON like types are accepted
* @return instance of current builder
* @throws UnsupportedOperationException if this instance was already built
public Builder setData(final Map<String, Object> data) {...}
* Solution specific XDM event data for this event.
* @param xdm {@link Schema} information
* @return instance of current builder
* @throws UnsupportedOperationException if this instance was already built
public Builder setXdmSchema(final Schema xdm) {...}
* Solution specific XDM event data and dataset identifier for this event.
* @param xdm {@code Map<String, Object>} of raw XDM schema data
* @param datasetIdentifier The Experience Platform dataset identifier where this event is sent.
* If not provided, the default dataset defined in the configuration ID is used
* @return instance of current builder
* @throws UnsupportedOperationException if this instance was already built
public Builder setXdmSchema(final Map<String, Object> xdm, final String datasetIdentifier) {...}
* Solution specific XDM event data for this event, passed as raw mapping of keys and
* @param xdm {@code Map<String, Object>} of raw XDM schema data
* @return instance of current builder
* @throws UnsupportedOperationException if this instance was already built
public Builder setXdmSchema(final Map<String, Object> xdm) {...}
* Builds and returns a new instance of {@code ExperienceEvent}.
* @return a new instance of {@code ExperienceEvent} or null if one of the required parameters is missing
* @throws UnsupportedOperationException if this instance was already built
public ExperienceEvent build() {...}
public Map<String, Object> getData() {...}
public Map<String, Object> getXdmSchema() {...}