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

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

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

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

	@Valid
	@NotNull
	@JsonProperty(value = "addWidget")
	private DashboardResource.WidgetObjectModel objectModel;

	public DashboardResource.WidgetObjectModel getObjectModel() {
		return objectModel;
	}

	public void setObjectModel(DashboardResource.WidgetObjectModel objectModel) {
		this.objectModel = objectModel;
	}
}

@@ -435,29 +435,37 @@
 ctModel 
-objectModel;%0A
+addWidget;%0A%0A%09@NotNull
 %0A%09public
@@ -504,27 +504,25 @@
 odel get
-ObjectModel
+AddWidget
 () %7B%0A%09%09r
@@ -527,27 +527,25 @@
 %09return 
-objectModel
+addWidget
 ;%0A%09%7D%0A%0A%09p
@@ -562,20 +562,27 @@
  set
-ObjectModel(
+AddWidget(@NotNull 
 Dash
@@ -617,55 +617,49 @@
 del 
-objectModel) %7B%0A%09%09this.objectModel = objectModel
+addWidget) %7B%0A%09%09this.addWidget = addWidget
 ;%0A%09%7D

Add widget property has been renamed