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

import java.util.ArrayList;
import java.util.List;

import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.dossier.file.FileAttributeConfig;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FileAttributesConfig {

    private String filenameMappingColumnHeaderName;

    private String delimiter;

    private String encoding;

    @Builder.Default
    private List<FileAttributeConfig> fileAttributeConfigs = new ArrayList<>();


    public FileAttributesConfig(List<FileAttributeConfig> fileAttributeConfigs) {
        this(null, ",", "UTF-8", fileAttributeConfigs);
    }

}
