
org.touchbit.testrail4j.gson.model.TRSuite 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 com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class TRSuite {
/**
* The description of the test suite
*
*/
@SerializedName("description")
@Expose
private String description;
/**
* The unique ID of the test suite
*
*/
@SerializedName("id")
@Expose
private Long id;
/**
* The date/time when the test suite was closed (as UNIX timestamp) (added with TestRail 4.0)
*
*/
@SerializedName("completed_on")
@Expose
private Long completedOn;
/**
* The name of the test suite
*
*/
@SerializedName("name")
@Expose
private String name;
/**
* The ID of the project this test suite belongs to
*
*/
@SerializedName("project_id")
@Expose
private Long projectId;
/**
* True if the test suite is a baseline test suite and false otherwise (added with TestRail 4.0)
*
*/
@SerializedName("is_baseline")
@Expose
private Boolean isBaseline;
/**
* True if the test suite is marked as completed/archived and false otherwise (added with TestRail 4.0)
*
*/
@SerializedName("is_completed")
@Expose
private Boolean isCompleted;
/**
* True if the test suite is a master test suite and false otherwise (added with TestRail 4.0)
*
*/
@SerializedName("is_master")
@Expose
private Boolean isMaster;
/**
* The address/URL of the test suite in the user interface
*
*/
@SerializedName("url")
@Expose
private String url;
/**
* No args constructor for use in serialization
*
*/
public TRSuite() {
}
/**
*
* @param completedOn
* @param isMaster
* @param name
* @param description
* @param isBaseline
* @param id
* @param projectId
* @param url
* @param isCompleted
*/
public TRSuite(String description, Long id, Long completedOn, String name, Long projectId, Boolean isBaseline, Boolean isCompleted, Boolean isMaster, String url) {
super();
this.description = description;
this.id = id;
this.completedOn = completedOn;
this.name = name;
this.projectId = projectId;
this.isBaseline = isBaseline;
this.isCompleted = isCompleted;
this.isMaster = isMaster;
this.url = url;
}
/**
* The description of the test suite
*
*/
public String getDescription() {
return description;
}
/**
* The description of the test suite
*
*/
public void setDescription(String description) {
this.description = description;
}
public TRSuite withDescription(String description) {
this.description = description;
return this;
}
/**
* The unique ID of the test suite
*
*/
public Long getId() {
return id;
}
/**
* The unique ID of the test suite
*
*/
public void setId(Long id) {
this.id = id;
}
public TRSuite withId(Long id) {
this.id = id;
return this;
}
/**
* The date/time when the test suite was closed (as UNIX timestamp) (added with TestRail 4.0)
*
*/
public Long getCompletedOn() {
return completedOn;
}
/**
* The date/time when the test suite was closed (as UNIX timestamp) (added with TestRail 4.0)
*
*/
public void setCompletedOn(Long completedOn) {
this.completedOn = completedOn;
}
public TRSuite withCompletedOn(Long completedOn) {
this.completedOn = completedOn;
return this;
}
/**
* The name of the test suite
*
*/
public String getName() {
return name;
}
/**
* The name of the test suite
*
*/
public void setName(String name) {
this.name = name;
}
public TRSuite withName(String name) {
this.name = name;
return this;
}
/**
* The ID of the project this test suite belongs to
*
*/
public Long getProjectId() {
return projectId;
}
/**
* The ID of the project this test suite belongs to
*
*/
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public TRSuite withProjectId(Long projectId) {
this.projectId = projectId;
return this;
}
/**
* True if the test suite is a baseline test suite and false otherwise (added with TestRail 4.0)
*
*/
public Boolean getIsBaseline() {
return isBaseline;
}
/**
* True if the test suite is a baseline test suite and false otherwise (added with TestRail 4.0)
*
*/
public void setIsBaseline(Boolean isBaseline) {
this.isBaseline = isBaseline;
}
public TRSuite withIsBaseline(Boolean isBaseline) {
this.isBaseline = isBaseline;
return this;
}
/**
* True if the test suite is marked as completed/archived and false otherwise (added with TestRail 4.0)
*
*/
public Boolean getIsCompleted() {
return isCompleted;
}
/**
* True if the test suite is marked as completed/archived and false otherwise (added with TestRail 4.0)
*
*/
public void setIsCompleted(Boolean isCompleted) {
this.isCompleted = isCompleted;
}
public TRSuite withIsCompleted(Boolean isCompleted) {
this.isCompleted = isCompleted;
return this;
}
/**
* True if the test suite is a master test suite and false otherwise (added with TestRail 4.0)
*
*/
public Boolean getIsMaster() {
return isMaster;
}
/**
* True if the test suite is a master test suite and false otherwise (added with TestRail 4.0)
*
*/
public void setIsMaster(Boolean isMaster) {
this.isMaster = isMaster;
}
public TRSuite withIsMaster(Boolean isMaster) {
this.isMaster = isMaster;
return this;
}
/**
* The address/URL of the test suite in the user interface
*
*/
public String getUrl() {
return url;
}
/**
* The address/URL of the test suite in the user interface
*
*/
public void setUrl(String url) {
this.url = url;
}
public TRSuite withUrl(String url) {
this.url = url;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(TRSuite.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("description");
sb.append('=');
sb.append(((this.description == null)?"":this.description));
sb.append(',');
sb.append("id");
sb.append('=');
sb.append(((this.id == null)?"":this.id));
sb.append(',');
sb.append("completedOn");
sb.append('=');
sb.append(((this.completedOn == null)?"":this.completedOn));
sb.append(',');
sb.append("name");
sb.append('=');
sb.append(((this.name == null)?"":this.name));
sb.append(',');
sb.append("projectId");
sb.append('=');
sb.append(((this.projectId == null)?"":this.projectId));
sb.append(',');
sb.append("isBaseline");
sb.append('=');
sb.append(((this.isBaseline == null)?"":this.isBaseline));
sb.append(',');
sb.append("isCompleted");
sb.append('=');
sb.append(((this.isCompleted == null)?"":this.isCompleted));
sb.append(',');
sb.append("isMaster");
sb.append('=');
sb.append(((this.isMaster == null)?"":this.isMaster));
sb.append(',');
sb.append("url");
sb.append('=');
sb.append(((this.url == null)?"":this.url));
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.completedOn == null)? 0 :this.completedOn.hashCode()));
result = ((result* 31)+((this.isMaster == null)? 0 :this.isMaster.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.isBaseline == null)? 0 :this.isBaseline.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
result = ((result* 31)+((this.projectId == null)? 0 :this.projectId.hashCode()));
result = ((result* 31)+((this.url == null)? 0 :this.url.hashCode()));
result = ((result* 31)+((this.isCompleted == null)? 0 :this.isCompleted.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TRSuite) == false) {
return false;
}
TRSuite rhs = ((TRSuite) other);
return ((((((((((this.completedOn == rhs.completedOn)||((this.completedOn!= null)&&this.completedOn.equals(rhs.completedOn)))&&((this.isMaster == rhs.isMaster)||((this.isMaster!= null)&&this.isMaster.equals(rhs.isMaster))))&&((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.isBaseline == rhs.isBaseline)||((this.isBaseline!= null)&&this.isBaseline.equals(rhs.isBaseline))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.projectId == rhs.projectId)||((this.projectId!= null)&&this.projectId.equals(rhs.projectId))))&&((this.url == rhs.url)||((this.url!= null)&&this.url.equals(rhs.url))))&&((this.isCompleted == rhs.isCompleted)||((this.isCompleted!= null)&&this.isCompleted.equals(rhs.isCompleted))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy