/*
 * Copyright 2018 EPAM Systems
 *
 *
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-model
 *
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.epam.ta.reportportal.ws.model.launch;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author Pavel Bortnik
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AnalyzeLaunchRQ {

	@JsonProperty(value = "launch_id", required = true)
	@ApiModelProperty
	private String launchId;

	@JsonProperty(value = "analyzer_mode", required = true)
	@ApiModelProperty(allowableValues = "ALL, LAUNCH_NAME, CURRENT_LAUNCH")
	private String analyzerHistoryMode;

	@JsonProperty(value = "analyze_items_mode", required = true)
	@ApiModelProperty(allowableValues = "TO_INVESTIGATE, AUTO_ANALYZED, MANUALLY_ANALYZED")
	private List<String> analyzeItemsMode;

	public String getLaunchId() {
		return launchId;
	}

	public void setLaunchId(String launchId) {
		this.launchId = launchId;
	}

	public String getAnalyzerHistoryMode() {
		return analyzerHistoryMode;
	}

	public void setAnalyzerHistoryMode(String analyzerHistoryMode) {
		this.analyzerHistoryMode = analyzerHistoryMode;
	}

	public List<String> getAnalyzeItemsMode() {
		return analyzeItemsMode;
	}

	public void setAnalyzeItemsMode(List<String> analyzeItemsMode) {
		this.analyzeItemsMode = analyzeItemsMode;
	}
}

@@ -990,16 +990,61 @@
 perty;%0A%0A
+import javax.validation.constraints.NotNull;%0A
 import j
@@ -1058,16 +1058,16 @@
 l.List;%0A
-
 %0A/**%0A * 
@@ -1167,16 +1167,26 @@
 chRQ %7B%0A%0A
+%09@NotNull%0A
 %09@JsonPr
@@ -1276,16 +1276,26 @@
 nchId;%0A%0A
+%09@NotNull%0A
 %09@JsonPr
@@ -1454,16 +1454,26 @@
 yMode;%0A%0A
+%09@NotNull%0A
 %09@JsonPr

add constraints on a request for analyzer