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

import com.epam.ta.reportportal.ws.annotations.NotEmpty;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotNull;

/**
 * @author <a href="mailto:ivan_budayeu@epam.com">Ivan Budayeu</a>
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CreateIntegrationRQ extends UpdateIntegrationRQ {

	@NotNull
	@NotEmpty
	@JsonProperty("pluginName")
	private String pluginName;

	public String getPluginName() {
		return pluginName;
	}

	public void setPluginName(String pluginName) {
		this.pluginName = pluginName;
	}
}

@@ -258,16 +258,38 @@
 NotNull;
+%0Aimport java.util.Map;
 %0A%0A/**%0A *
@@ -437,36 +437,8 @@
 nRQ 
-extends UpdateIntegrationRQ 
 %7B%0A%0A%09
@@ -520,146 +520,787 @@
 ;%0A%0A%09
-public String getPluginName() %7B%0A%09%09return pluginName;%0A%09%7D%0A%0A%09public void setPluginName(String pluginName) %7B%0A%09%09this.pluginName = pluginName;%0A%09%7D
+@JsonProperty(%22name%22)%0A%09private String name;%0A%0A%09@JsonProperty(%22integrationParameters%22)%0A%09private Map%3CString, Object%3E integrationParams;%0A%0A%09@NotNull%0A%09@JsonProperty(%22enabled%22)%0A%09private Boolean enabled;%0A%0A%09public String getPluginName() %7B%0A%09%09return pluginName;%0A%09%7D%0A%0A%09public void setPluginName(String pluginName) %7B%0A%09%09this.pluginName = pluginName;%0A%09%7D%0A%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%0A%09public void setName(String name) %7B%0A%09%09this.name = name;%0A%09%7D%0A%0A%09public Map%3CString, Object%3E getIntegrationParams() %7B%0A%09%09return integrationParams;%0A%09%7D%0A%0A%09public void setIntegrationParams(Map%3CString, Object%3E integrationParams) %7B%0A%09%09this.integrationParams = integrationParams;%0A%09%7D%0A%0A%09public Boolean getEnabled() %7B%0A%09%09return enabled;%0A%09%7D%0A%0A%09public void setEnabled(Boolean enabled) %7B%0A%09%09this.enabled = enabled;%0A%09%7D%0A
 %0A%7D%0A

Create integration request entity update