/*
 * Copyright 2019 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.auth;

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

/**
 * @author <a href="mailto:ihar_kahadouski@epam.com">Ihar Kahadouski</a>
 */
public class UpdateAuthRQ {

	@NotNull
	private Boolean enabled;

	@NotEmpty
	private Map<String, Object> integrationParams;

	public Boolean getEnabled() {
		return enabled;
	}

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

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

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

	@Override
	public String toString() {
		return "UpdateAuthRQ{" + "enabled=" + enabled + ", authParams=" + integrationParams + '}';
	}
}

@@ -651,16 +651,124 @@
 .auth;%0A%0A
+import com.fasterxml.jackson.annotation.JsonInclude;%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0A%0A
 import j
@@ -805,16 +805,16 @@
 tEmpty;%0A
-
 import j
@@ -954,16 +954,59 @@
 /a%3E%0A */%0A
+@JsonInclude(JsonInclude.Include.NON_NULL)%0A
 public c
@@ -1063,16 +1063,16 @@
 abled;%0A%0A
-
 %09@NotEmp
@@ -1074,16 +1074,56 @@
 otEmpty%0A
+%09@JsonProperty(%22integrationParameters%22)%0A
 %09private

change auth integration request parameters name