All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chutneytesting.design.api.campaign.dto.CampaignDto Maven / Gradle / Ivy

package com.chutneytesting.design.api.campaign.dto;

import static java.util.Optional.ofNullable;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Optional;

public class CampaignDto {

    private Long id;
    private String title;
    private String description;
    private List scenarioIds;
    @JsonProperty("computedParameters")
    private Map executionParameters;
    private List campaignExecutionReports;
    private String environment;
    private boolean parallelRun;
    private boolean retryAuto;
    private String datasetId;
    private List tags;

    public CampaignDto() {
    }

    public CampaignDto(Long id,
                       String title,
                       String description,
                       List scenarioIds,
                       Map executionParameters,
                       List campaignExecutionReports,
                       String environment,
                       boolean parallelRun,
                       boolean retryAuto,
                       String datasetId,
                       List tags) {
        this.id = id;
        this.title = title;
        this.description = description;
        this.scenarioIds = scenarioIds;
        this.executionParameters = executionParameters;
        this.campaignExecutionReports = ofNullable(campaignExecutionReports).orElseGet(ArrayList::new);
        this.environment = environment;
        this.parallelRun = parallelRun;
        this.retryAuto = retryAuto;
        this.datasetId = datasetId;
        this.tags = ofNullable(tags).orElseGet(ArrayList::new);
    }

    public Long getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getDescription() {
        return description;
    }

    public List getScenarioIds() {
        return scenarioIds;
    }

    public Map getExecutionParameters() {
        return executionParameters;
    }

    public List getCampaignExecutionReports() {
        return campaignExecutionReports;
    }

    public String getEnvironment() {
        return environment;
    }

    public boolean isParallelRun() {
        return parallelRun;
    }

    public boolean isRetryAuto() {
        return retryAuto;
    }

    public String getDatasetId() {
        return datasetId;
    }

    public List getTags() {
        return tags;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy