BatchResult.java 2.07 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.aemds.guide.batch.api;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class BatchResult
extends HashMap<String, Object> {
    private static final long serialVersionUID = -3422334048132064737L;
    public static final String batchId = "batchId";
    public static final String templateId = "templateId";
    public static final String batchPerformance = "batchPerformance";
    public static final String storedRecords = "storedRecords";
    public static final String failedRecords = "failedRecords";

    public BatchResult() {
    }

    public BatchResult(String batchId, String templateId, Map<String, String> batchPerformance, Map<String, List<String>> storedRecords, Map<String, String> failedRecords) {
        this.setBatchId(batchId);
        this.setTemplateId(templateId);
        this.setBatchPerformance(batchPerformance);
        this.setStoredRecords(storedRecords);
        this.setFailedRecords(failedRecords);
    }

    public String getBatchId() {
        return (String)this.get("batchId");
    }

    public void setBatchId(String batchId) {
        this.put("batchId", batchId);
    }

    public String getTemplateId() {
        return (String)this.get("templateId");
    }

    public void setTemplateId(String templateId) {
        this.put("templateId", templateId);
    }

    public Map<String, String> getBatchPerformance() {
        return (Map)this.get("batchPerformance");
    }

    public void setBatchPerformance(Map<String, String> batchPerformance) {
        this.put("batchPerformance", batchPerformance);
    }

    public Map<String, List<String>> getStoredRecords() {
        return (Map)this.get("storedRecords");
    }

    public void setStoredRecords(Map<String, List<String>> storedRecords) {
        this.put("storedRecords", storedRecords);
    }

    public Map<String, String> getFailedRecords() {
        return (Map)this.get("failedRecords");
    }

    public void setFailedRecords(Map<String, String> failedRecords) {
        this.put("failedRecords", failedRecords);
    }
}