package com.r11.tools.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.http.HttpMethod;

import java.time.LocalDateTime;
import java.util.Map;
import java.util.UUID;

/**
 * Pojo for history query request. Contains information necessary to obtain {@link RequestHistory} list
 * @author Rafał Żukowicz
 * @author Mikołaj Widła
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RequestHistoryDTO {

    private UUID clientUUID;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime dateTimeStamp;
    private Map<String,String> headers;
    private HttpMethod httpMethod;
    private String requestBody;

}
