/*
 * Copyright 2016 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;

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

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.Set;

/**
 * Finishes some entity execution in Report Portal<br>
 * May be Launch, TestSuite, Test, TestStep
 * 
 * @author Andrei Varabyeu
 * 
 */
@JsonInclude(Include.NON_NULL)
public class FinishExecutionRQ {
	
	@NotNull
	@JsonProperty(value = "endTime", required = true)
	@ApiModelProperty(required = true)
	private Date endTime;

	@JsonProperty(value = "status")
	@ApiModelProperty(allowableValues = "PASSED, FAILED, STOPPED, SKIPPED, RESETED, CANCELLED")
	private String status;

	@JsonProperty(value = "description")
	private String description;

	@JsonProperty
	private Set<String> tags;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set<String> getTags() {
		return tags;
	}

	public void setTags(Set<String> tags) {
		this.tags = tags;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("FinishExecutionRQ{");
		sb.append("endTime=").append(endTime);
		sb.append(", description=").append(description).append("\'");
		sb.append(", tags").append(tags).append("\'");
		sb.append(", status='").append(status).append('\'');
		sb.append('}');
		return sb.toString();
	}

}
@@ -29,21 +29,19 @@
 stems%0A *
- 
 %0A *
- 
 %0A * This
@@ -128,17 +128,16 @@
 model%0A *
- 
 %0A * Repo
@@ -380,25 +380,24 @@
  version.%0A *
- 
 %0A * Report P
@@ -634,17 +634,16 @@
 ails.%0A *
- 
 %0A * You 
@@ -781,19 +781,17 @@
 s/%3E.%0A */
- %0A 
+%0A
 %0Apackage
@@ -1240,17 +1240,16 @@
 tStep%0A *
- 
 %0A * @aut
@@ -1272,12 +1272,8 @@
 yeu%0A
- * %0A
  */%0A
@@ -1336,17 +1336,16 @@
 ionRQ %7B%0A
-%09
 %0A%09@NotNu
@@ -1701,30 +1701,45 @@
 private Set%3C
-String
+ItemAttributeResource
 %3E tags;%0A%0A%09pu
@@ -1895,22 +1895,37 @@
 lic Set%3C
-String
+ItemAttributeResource
 %3E getTag
@@ -1974,22 +1974,37 @@
 ags(Set%3C
-String
+ItemAttributeResource
 %3E tags) 

Add item attribute resource