
org.touchbit.testrail4j.gson.model.TRPlanEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gson-api-model Show documentation
Show all versions of gson-api-model Show documentation
Gson annotation models for TestRail API
The newest version!
package org.touchbit.testrail4j.gson.model;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class TRPlanEntry {
/**
* UUID
*
*/
@SerializedName("id")
@Expose
private String id;
/**
* The ID of the test suite for the test run(s) (required)
* (Required)
*
*/
@SerializedName("suite_id")
@Expose
private Long suiteId;
/**
* The name of the test run(s)
*
*/
@SerializedName("name")
@Expose
private String name;
/**
* The description of the test run(s) (requires TestRail 5.2 or later)
*
*/
@SerializedName("description")
@Expose
private String description;
/**
* The ID of the user the test run(s) should be assigned to
*
*/
@SerializedName("assignedto_id")
@Expose
private Long assignedtoId;
/**
* True for including all test cases of the test suite and false for a custom case selection (default: true)
*
*/
@SerializedName("include_all")
@Expose
private Boolean includeAll;
/**
* An array of case IDs for the custom case selection
*
*/
@SerializedName("case_ids")
@Expose
private List caseIds = new ArrayList();
/**
* An array of configuration IDs used for the test runs of the test plan entry (requires TestRail 3.1 or later)
*
*/
@SerializedName("config_ids")
@Expose
private List configIds = new ArrayList();
/**
* An array of test runs with configurations, please see the example below for details (requires TestRail 3.1 or later)
*
*/
@SerializedName("runs")
@Expose
private List runs = new ArrayList();
/**
* No args constructor for use in serialization
*
*/
public TRPlanEntry() {
}
/**
*
* @param suiteId
* @param assignedtoId
* @param name
* @param description
* @param includeAll
* @param caseIds
* @param configIds
* @param id
* @param runs
*/
public TRPlanEntry(String id, Long suiteId, String name, String description, Long assignedtoId, Boolean includeAll, List caseIds, List configIds, List runs) {
super();
this.id = id;
this.suiteId = suiteId;
this.name = name;
this.description = description;
this.assignedtoId = assignedtoId;
this.includeAll = includeAll;
this.caseIds = caseIds;
this.configIds = configIds;
this.runs = runs;
}
/**
* UUID
*
*/
public String getId() {
return id;
}
/**
* UUID
*
*/
public void setId(String id) {
this.id = id;
}
public TRPlanEntry withId(String id) {
this.id = id;
return this;
}
/**
* The ID of the test suite for the test run(s) (required)
* (Required)
*
*/
public Long getSuiteId() {
return suiteId;
}
/**
* The ID of the test suite for the test run(s) (required)
* (Required)
*
*/
public void setSuiteId(Long suiteId) {
this.suiteId = suiteId;
}
public TRPlanEntry withSuiteId(Long suiteId) {
this.suiteId = suiteId;
return this;
}
/**
* The name of the test run(s)
*
*/
public String getName() {
return name;
}
/**
* The name of the test run(s)
*
*/
public void setName(String name) {
this.name = name;
}
public TRPlanEntry withName(String name) {
this.name = name;
return this;
}
/**
* The description of the test run(s) (requires TestRail 5.2 or later)
*
*/
public String getDescription() {
return description;
}
/**
* The description of the test run(s) (requires TestRail 5.2 or later)
*
*/
public void setDescription(String description) {
this.description = description;
}
public TRPlanEntry withDescription(String description) {
this.description = description;
return this;
}
/**
* The ID of the user the test run(s) should be assigned to
*
*/
public Long getAssignedtoId() {
return assignedtoId;
}
/**
* The ID of the user the test run(s) should be assigned to
*
*/
public void setAssignedtoId(Long assignedtoId) {
this.assignedtoId = assignedtoId;
}
public TRPlanEntry withAssignedtoId(Long assignedtoId) {
this.assignedtoId = assignedtoId;
return this;
}
/**
* True for including all test cases of the test suite and false for a custom case selection (default: true)
*
*/
public Boolean getIncludeAll() {
return includeAll;
}
/**
* True for including all test cases of the test suite and false for a custom case selection (default: true)
*
*/
public void setIncludeAll(Boolean includeAll) {
this.includeAll = includeAll;
}
public TRPlanEntry withIncludeAll(Boolean includeAll) {
this.includeAll = includeAll;
return this;
}
/**
* An array of case IDs for the custom case selection
*
*/
public List getCaseIds() {
return caseIds;
}
/**
* An array of case IDs for the custom case selection
*
*/
public void setCaseIds(List caseIds) {
this.caseIds = caseIds;
}
public TRPlanEntry withCaseIds(List caseIds) {
this.caseIds = caseIds;
return this;
}
/**
* An array of configuration IDs used for the test runs of the test plan entry (requires TestRail 3.1 or later)
*
*/
public List getConfigIds() {
return configIds;
}
/**
* An array of configuration IDs used for the test runs of the test plan entry (requires TestRail 3.1 or later)
*
*/
public void setConfigIds(List configIds) {
this.configIds = configIds;
}
public TRPlanEntry withConfigIds(List configIds) {
this.configIds = configIds;
return this;
}
/**
* An array of test runs with configurations, please see the example below for details (requires TestRail 3.1 or later)
*
*/
public List getRuns() {
return runs;
}
/**
* An array of test runs with configurations, please see the example below for details (requires TestRail 3.1 or later)
*
*/
public void setRuns(List runs) {
this.runs = runs;
}
public TRPlanEntry withRuns(List runs) {
this.runs = runs;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(TRPlanEntry.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("id");
sb.append('=');
sb.append(((this.id == null)?"":this.id));
sb.append(',');
sb.append("suiteId");
sb.append('=');
sb.append(((this.suiteId == null)?"":this.suiteId));
sb.append(',');
sb.append("name");
sb.append('=');
sb.append(((this.name == null)?"":this.name));
sb.append(',');
sb.append("description");
sb.append('=');
sb.append(((this.description == null)?"":this.description));
sb.append(',');
sb.append("assignedtoId");
sb.append('=');
sb.append(((this.assignedtoId == null)?"":this.assignedtoId));
sb.append(',');
sb.append("includeAll");
sb.append('=');
sb.append(((this.includeAll == null)?"":this.includeAll));
sb.append(',');
sb.append("caseIds");
sb.append('=');
sb.append(((this.caseIds == null)?"":this.caseIds));
sb.append(',');
sb.append("configIds");
sb.append('=');
sb.append(((this.configIds == null)?"":this.configIds));
sb.append(',');
sb.append("runs");
sb.append('=');
sb.append(((this.runs == null)?"":this.runs));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.suiteId == null)? 0 :this.suiteId.hashCode()));
result = ((result* 31)+((this.assignedtoId == null)? 0 :this.assignedtoId.hashCode()));
result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode()));
result = ((result* 31)+((this.description == null)? 0 :this.description.hashCode()));
result = ((result* 31)+((this.includeAll == null)? 0 :this.includeAll.hashCode()));
result = ((result* 31)+((this.caseIds == null)? 0 :this.caseIds.hashCode()));
result = ((result* 31)+((this.configIds == null)? 0 :this.configIds.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
result = ((result* 31)+((this.runs == null)? 0 :this.runs.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TRPlanEntry) == false) {
return false;
}
TRPlanEntry rhs = ((TRPlanEntry) other);
return ((((((((((this.suiteId == rhs.suiteId)||((this.suiteId!= null)&&this.suiteId.equals(rhs.suiteId)))&&((this.assignedtoId == rhs.assignedtoId)||((this.assignedtoId!= null)&&this.assignedtoId.equals(rhs.assignedtoId))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description))))&&((this.includeAll == rhs.includeAll)||((this.includeAll!= null)&&this.includeAll.equals(rhs.includeAll))))&&((this.caseIds == rhs.caseIds)||((this.caseIds!= null)&&this.caseIds.equals(rhs.caseIds))))&&((this.configIds == rhs.configIds)||((this.configIds!= null)&&this.configIds.equals(rhs.configIds))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.runs == rhs.runs)||((this.runs!= null)&&this.runs.equals(rhs.runs))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy