/*
 * Copyright 2018 EPAM Systems
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

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

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author <a href="mailto:pavel_bortnik@epam.com">Pavel Bortnik</a>
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UpdateIntegrationRQ {

	@NotNull
	@JsonProperty("integrationName")
	private String integrationName;

	@JsonProperty("integrationParameters")
	private Map<String, Object> integrationParams;

	@NotNull
	@JsonProperty("enabled")
	private Boolean enabled;

	public String getIntegrationName() {
		return integrationName;
	}

	public void setIntegrationName(String integrationName) {
		this.integrationName = integrationName;
	}

	public Map<String, Object> getIntegrationParams() {
		return integrationParams;
	}

	public void setIntegrationParams(Map<String, Object> integrationParams) {
		this.integrationParams = integrationParams;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}
}

@@ -982,16 +982,62 @@
 onRQ %7B%0A%0A
+%09@JsonProperty(%22name%22)%0A%09private String name;%0A%0A
 %09@NotNul
@@ -1054,26 +1054,21 @@
 operty(%22
-integratio
+plugi
 nName%22)%0A
@@ -1079,34 +1079,29 @@
 vate String 
-integratio
+plugi
 nName;%0A%0A%09@Js
@@ -1266,26 +1266,127 @@
 ring get
-Integratio
+Name() %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 String getPlugi
 nName() 
@@ -1396,26 +1396,21 @@
 %09return 
-integratio
+plugi
 nName;%0A%09
@@ -1428,26 +1428,21 @@
 void set
-Integratio
+Plugi
 nName(St
@@ -1446,26 +1446,21 @@
 (String 
-integratio
+plugi
 nName) %7B
@@ -1471,36 +1471,26 @@
 his.
-integrationName = integratio
+pluginName = plugi
 nNam

Update integration request entity fix