package com.cloudhandson.vpdbackoffice.domain.probe;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;

public record ProbeCommand(
    Long tokenKeyId,
    @Positive long objectId,
    @NotBlank String bearerToken,
    @Min(1) @Max(500) int limit,
    String requestBody
) {

  public ProbeCommand(Long tokenKeyId, long objectId, String bearerToken, int limit) {
    this(tokenKeyId, objectId, bearerToken, limit, null);
  }
}
