package com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.rules;

import com.iqser.red.service.persistence.service.v1.api.shared.model.RuleFileType;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "Object containing a string of Drools rules.")
public class RulesUploadRequestModel {

    @NonNull
    @Schema(description = "The actual string of rules.")
    private String rules;

    @NonNull
    @Schema(description = "The DossierTemplate Id for these rules")
    private String dossierTemplateId;

    @Schema(description = "The Rule file type of these rules", allowableValues = {"ENTITY", "COMPONENT"})
    private RuleFileType ruleFileType = RuleFileType.ENTITY;

}
