package at.procon.eventhub.processing.eventprocessing.module.epl;

import java.util.List;
import java.util.Map;

public record RuntimeEplInputEventStream(
        String eventTypeName,
        List<Map<String, Object>> events
) {
    public RuntimeEplInputEventStream {
        if (eventTypeName == null || eventTypeName.isBlank()) {
            throw new IllegalArgumentException("eventTypeName must not be blank");
        }
        eventTypeName = eventTypeName.trim();
        events = events == null ? List.of() : List.copyOf(events);
    }
}
