org.touchbit.testrail4j.gson.model.TRResultField 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
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;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
public class TRResultField {
/**
*
* (Required)
*
*/
@SerializedName("configs")
@Expose
private List configs = new ArrayList();
@SerializedName("template_ids")
@Expose
private List templateIds = new ArrayList();
/**
*
* (Required)
*
*/
@SerializedName("description")
@Expose
private String description;
/**
*
* (Required)
*
*/
@SerializedName("display_order")
@Expose
private java.lang.Long displayOrder;
/**
*
* (Required)
*
*/
@SerializedName("id")
@Expose
private java.lang.Long id;
@SerializedName("include_all")
@Expose
private Boolean includeAll;
/**
*
* (Required)
*
*/
@SerializedName("label")
@Expose
private String label;
/**
*
* (Required)
*
*/
@SerializedName("name")
@Expose
private String name;
@SerializedName("is_active")
@Expose
private Boolean isActive;
/**
*
* (Required)
*
*/
@SerializedName("system_name")
@Expose
private String systemName;
/**
*
* (Required)
*
*/
@SerializedName("type_id")
@Expose
private java.lang.Long typeId;
/**
* No args constructor for use in serialization
*
*/
public TRResultField() {
}
/**
*
* @param configs
* @param templateIds
* @param systemName
* @param displayOrder
* @param name
* @param description
* @param includeAll
* @param typeId
* @param id
* @param label
* @param isActive
*/
public TRResultField(List configs, List templateIds, String description, java.lang.Long displayOrder, java.lang.Long id, Boolean includeAll, String label, String name, Boolean isActive, String systemName, java.lang.Long typeId) {
super();
this.configs = configs;
this.templateIds = templateIds;
this.description = description;
this.displayOrder = displayOrder;
this.id = id;
this.includeAll = includeAll;
this.label = label;
this.name = name;
this.isActive = isActive;
this.systemName = systemName;
this.typeId = typeId;
}
/**
*
* (Required)
*
*/
public List getConfigs() {
return configs;
}
/**
*
* (Required)
*
*/
public void setConfigs(List configs) {
this.configs = configs;
}
public TRResultField withConfigs(List configs) {
this.configs = configs;
return this;
}
public List getTemplateIds() {
return templateIds;
}
public void setTemplateIds(List templateIds) {
this.templateIds = templateIds;
}
public TRResultField withTemplateIds(List templateIds) {
this.templateIds = templateIds;
return this;
}
/**
*
* (Required)
*
*/
public String getDescription() {
return description;
}
/**
*
* (Required)
*
*/
public void setDescription(String description) {
this.description = description;
}
public TRResultField withDescription(String description) {
this.description = description;
return this;
}
/**
*
* (Required)
*
*/
public java.lang.Long getDisplayOrder() {
return displayOrder;
}
/**
*
* (Required)
*
*/
public void setDisplayOrder(java.lang.Long displayOrder) {
this.displayOrder = displayOrder;
}
public TRResultField withDisplayOrder(java.lang.Long displayOrder) {
this.displayOrder = displayOrder;
return this;
}
/**
*
* (Required)
*
*/
public java.lang.Long getId() {
return id;
}
/**
*
* (Required)
*
*/
public void setId(java.lang.Long id) {
this.id = id;
}
public TRResultField withId(java.lang.Long id) {
this.id = id;
return this;
}
public Boolean getIncludeAll() {
return includeAll;
}
public void setIncludeAll(Boolean includeAll) {
this.includeAll = includeAll;
}
public TRResultField withIncludeAll(Boolean includeAll) {
this.includeAll = includeAll;
return this;
}
/**
*
* (Required)
*
*/
public String getLabel() {
return label;
}
/**
*
* (Required)
*
*/
public void setLabel(String label) {
this.label = label;
}
public TRResultField withLabel(String label) {
this.label = label;
return this;
}
/**
*
* (Required)
*
*/
public String getName() {
return name;
}
/**
*
* (Required)
*
*/
public void setName(String name) {
this.name = name;
}
public TRResultField withName(String name) {
this.name = name;
return this;
}
public Boolean getIsActive() {
return isActive;
}
public void setIsActive(Boolean isActive) {
this.isActive = isActive;
}
public TRResultField withIsActive(Boolean isActive) {
this.isActive = isActive;
return this;
}
/**
*
* (Required)
*
*/
public String getSystemName() {
return systemName;
}
/**
*
* (Required)
*
*/
public void setSystemName(String systemName) {
this.systemName = systemName;
}
public TRResultField withSystemName(String systemName) {
this.systemName = systemName;
return this;
}
/**
*
* (Required)
*
*/
public java.lang.Long getTypeId() {
return typeId;
}
/**
*
* (Required)
*
*/
public void setTypeId(java.lang.Long typeId) {
this.typeId = typeId;
}
public TRResultField withTypeId(java.lang.Long typeId) {
this.typeId = typeId;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("configs", configs).append("templateIds", templateIds).append("description", description).append("displayOrder", displayOrder).append("id", id).append("includeAll", includeAll).append("label", label).append("name", name).append("isActive", isActive).append("systemName", systemName).append("typeId", typeId).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(configs).append(templateIds).append(systemName).append(displayOrder).append(name).append(description).append(includeAll).append(typeId).append(id).append(label).append(isActive).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TRResultField) == false) {
return false;
}
TRResultField rhs = ((TRResultField) other);
return new EqualsBuilder().append(configs, rhs.configs).append(templateIds, rhs.templateIds).append(systemName, rhs.systemName).append(displayOrder, rhs.displayOrder).append(name, rhs.name).append(description, rhs.description).append(includeAll, rhs.includeAll).append(typeId, rhs.typeId).append(id, rhs.id).append(label, rhs.label).append(isActive, rhs.isActive).isEquals();
}
}