package com.cameleer.server.app.alerting.dto;

import jakarta.validation.constraints.NotNull;

import java.util.Map;
import java.util.UUID;

public record WebhookBindingRequest(
        @NotNull UUID outboundConnectionId,
        String bodyOverride,
        Map<String, String> headerOverrides
) {
    public WebhookBindingRequest {
        headerOverrides = headerOverrides == null ? Map.of() : Map.copyOf(headerOverrides);
    }
}
