package at.procon.eventhub.processing.driverworkingtime.model;

import java.util.Objects;

public record DriverWorkingTimePreparedInput(
        String driverKey,
        DriverWorkingTimeDriverPartition partition,
        DriverWorkingTimeProcessingInput processingInput
) {
    public DriverWorkingTimePreparedInput {
        driverKey = driverKey == null || driverKey.isBlank() ? null : driverKey.trim();
        partition = Objects.requireNonNull(partition, "partition must not be null");
        processingInput = Objects.requireNonNull(processingInput, "processingInput must not be null");
    }
}
