package com.aip.gateway.api.entity;

import lombok.Data;
import lombok.ToString;

@Data
//@Builder
@ToString
public class TbAipFileJobLog {

    private int apiId;
    private String fileId;
    private String fileName;
    private String fileExt;
    private String fileOwner;
    private String fileLabelGuid;
    private String fileProtectionGuid;
    private long fileSize;
    private String newFileName;
    private String newFileExt;
    private String newFileOwner;
    private String newFileLabelGuid;
    private String newFileProtectionGuid;
    private long newFileSize;
    private String apiGuid;
    private String jobOwner;
    private String serverIpAddr;
    private String apiKey;
    private String decryptKey;
    private int jobResult;
    private int jobTime;
    private String jobMessage;

    public TbAipFileJobLog(int apiId, String fileId, String apiGuid, String serverIpAddr, String apiKey) {
        this.apiId = apiId;
        this.fileId = fileId;
        this.apiGuid = apiGuid;
        this.serverIpAddr = serverIpAddr;
        this.apiKey = apiKey;
        this.fileName = "";
        this.fileExt = "";
        this.fileOwner = "";
        this.fileLabelGuid = "";
        this.fileProtectionGuid = "";
        this.fileSize = 0;

        this.newFileName = "";
        this.newFileExt = "";
        this.newFileOwner = "";
        this.newFileLabelGuid = "";
        this.newFileProtectionGuid = "";
        this.newFileSize = 0;

        this.jobOwner = "";
        this.decryptKey = "";

        this.jobResult = 0;
        this.jobMessage = "";

        this.jobTime = 0;
    }
}
