Class ExperienceEvent.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setData

        public ExperienceEvent.Builder setData​(Map<String,​Object> data)
        Sets free form data associated with this event to be passed to Adobe Experience Edge.
        Parameters:
        data - free form data, JSON like types are accepted
        Returns:
        instance of current builder
        Throws:
        UnsupportedOperationException - if this instance was already built
      • setXdmSchema

        public ExperienceEvent.Builder setXdmSchema​(Schema xdm)
        Solution specific XDM event data for this event. If XDM schema is set multiple times using either this API or setXdmSchema(Map), the value will be overwritten and only the last changes are applied. Setting xdm to null clears the value. This event is sent to the Experience Platform dataset defined by Schema.getDatasetIdentifier().
        Parameters:
        xdm - Schema information
        Returns:
        instance of current builder
        Throws:
        UnsupportedOperationException - if this instance was already built
      • setXdmSchema

        public ExperienceEvent.Builder setXdmSchema​(Map<String,​Object> xdm,
                                                    String datasetIdentifier)
        Solution specific XDM event data for this event, passed as raw mapping of keys and Object values. If XDM schema is set multiple times using either this API or setXdmSchema(Schema), the value will be overwritten and only the last changes are applied. Setting xdm to null clears the value. When using Edge.sendEvent(com.adobe.marketing.mobile.ExperienceEvent, com.adobe.marketing.mobile.EdgeCallback) this event is sent to the Experience Platform datasetIdentifier if provided, or to the default Experience Platform dataset defined when generating the Experience Edge configuration ID if datasetIdentifier is null.
        Parameters:
        xdm - Map<String, Object> of raw XDM schema data
        datasetIdentifier - The Experience Platform dataset identifier where this event is sent. If not provided, the default dataset defined in the configuration ID is used
        Returns:
        instance of current builder
        Throws:
        UnsupportedOperationException - if this instance was already built
      • build

        public ExperienceEvent build()
        Builds and returns a new instance of ExperienceEvent.
        Returns:
        a new instance of ExperienceEvent or null if one of the required parameters is missing
        Throws:
        UnsupportedOperationException - if this instance was already built