package p.packer.messages;

import java.util.Objects;

public record UpdateAssetBuildParticipationResult(
        PackerOperationStatus status,
        String summary,
        AssetReference assetReference) {

    public UpdateAssetBuildParticipationResult {
        Objects.requireNonNull(status, "status");
        summary = Objects.requireNonNull(summary, "summary").trim();
        if (summary.isBlank()) {
            throw new IllegalArgumentException("summary must not be blank");
        }
    }
}
