package com.aip.gateway.api.aip.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;

@ApiModel("AipFileInfo(File AIP Information")
@Data
//@Builder
public class AipFileInfo {

    public enum AipProtectionType {
        /// <summary>Protection was created from a template</summary>
        TemplateBased,
        /// <summary>Protection was created ad hoc</summary>
        Custom,
    }

    private int errorCode;
    private String errorMessage;

    private AipContentLabel content;
    private AipLabel label;
    private AipProtection protection;
    private long fileSize;
    private String outputFileName;

    public AipFileInfo(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;

        this.content = null;
        this.label = null;
        this.protection = null;
        this.fileSize = 0;
        this.outputFileName = "";
    }

}
