
org.touchbit.testrail4j.gson.model.TRStatus 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 TRStatus {
/**
*
* (Required)
*
*/
@SerializedName("color_bright")
@Expose
private Long colorBright;
/**
*
* (Required)
*
*/
@SerializedName("color_dark")
@Expose
private Long colorDark;
/**
*
* (Required)
*
*/
@SerializedName("color_medium")
@Expose
private Long colorMedium;
/**
*
* (Required)
*
*/
@SerializedName("id")
@Expose
private Long id;
/**
*
* (Required)
*
*/
@SerializedName("is_final")
@Expose
private Boolean isFinal;
/**
*
* (Required)
*
*/
@SerializedName("is_system")
@Expose
private Boolean isSystem;
/**
*
* (Required)
*
*/
@SerializedName("is_untested")
@Expose
private Boolean isUntested;
/**
*
* (Required)
*
*/
@SerializedName("label")
@Expose
private String label;
/**
*
* (Required)
*
*/
@SerializedName("name")
@Expose
private String name;
/**
* No args constructor for use in serialization
*
*/
public TRStatus() {
}
/**
*
* @param isSystem
* @param colorDark
* @param isUntested
* @param colorBright
* @param name
* @param id
* @param isFinal
* @param label
* @param colorMedium
*/
public TRStatus(Long colorBright, Long colorDark, Long colorMedium, Long id, Boolean isFinal, Boolean isSystem, Boolean isUntested, String label, String name) {
super();
this.colorBright = colorBright;
this.colorDark = colorDark;
this.colorMedium = colorMedium;
this.id = id;
this.isFinal = isFinal;
this.isSystem = isSystem;
this.isUntested = isUntested;
this.label = label;
this.name = name;
}
/**
*
* (Required)
*
*/
public Long getColorBright() {
return colorBright;
}
/**
*
* (Required)
*
*/
public void setColorBright(Long colorBright) {
this.colorBright = colorBright;
}
public TRStatus withColorBright(Long colorBright) {
this.colorBright = colorBright;
return this;
}
/**
*
* (Required)
*
*/
public Long getColorDark() {
return colorDark;
}
/**
*
* (Required)
*
*/
public void setColorDark(Long colorDark) {
this.colorDark = colorDark;
}
public TRStatus withColorDark(Long colorDark) {
this.colorDark = colorDark;
return this;
}
/**
*
* (Required)
*
*/
public Long getColorMedium() {
return colorMedium;
}
/**
*
* (Required)
*
*/
public void setColorMedium(Long colorMedium) {
this.colorMedium = colorMedium;
}
public TRStatus withColorMedium(Long colorMedium) {
this.colorMedium = colorMedium;
return this;
}
/**
*
* (Required)
*
*/
public Long getId() {
return id;
}
/**
*
* (Required)
*
*/
public void setId(Long id) {
this.id = id;
}
public TRStatus withId(Long id) {
this.id = id;
return this;
}
/**
*
* (Required)
*
*/
public Boolean getIsFinal() {
return isFinal;
}
/**
*
* (Required)
*
*/
public void setIsFinal(Boolean isFinal) {
this.isFinal = isFinal;
}
public TRStatus withIsFinal(Boolean isFinal) {
this.isFinal = isFinal;
return this;
}
/**
*
* (Required)
*
*/
public Boolean getIsSystem() {
return isSystem;
}
/**
*
* (Required)
*
*/
public void setIsSystem(Boolean isSystem) {
this.isSystem = isSystem;
}
public TRStatus withIsSystem(Boolean isSystem) {
this.isSystem = isSystem;
return this;
}
/**
*
* (Required)
*
*/
public Boolean getIsUntested() {
return isUntested;
}
/**
*
* (Required)
*
*/
public void setIsUntested(Boolean isUntested) {
this.isUntested = isUntested;
}
public TRStatus withIsUntested(Boolean isUntested) {
this.isUntested = isUntested;
return this;
}
/**
*
* (Required)
*
*/
public String getLabel() {
return label;
}
/**
*
* (Required)
*
*/
public void setLabel(String label) {
this.label = label;
}
public TRStatus withLabel(String label) {
this.label = label;
return this;
}
/**
*
* (Required)
*
*/
public String getName() {
return name;
}
/**
*
* (Required)
*
*/
public void setName(String name) {
this.name = name;
}
public TRStatus withName(String name) {
this.name = name;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(TRStatus.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("colorBright");
sb.append('=');
sb.append(((this.colorBright == null)?"":this.colorBright));
sb.append(',');
sb.append("colorDark");
sb.append('=');
sb.append(((this.colorDark == null)?"":this.colorDark));
sb.append(',');
sb.append("colorMedium");
sb.append('=');
sb.append(((this.colorMedium == null)?"":this.colorMedium));
sb.append(',');
sb.append("id");
sb.append('=');
sb.append(((this.id == null)?"":this.id));
sb.append(',');
sb.append("isFinal");
sb.append('=');
sb.append(((this.isFinal == null)?"":this.isFinal));
sb.append(',');
sb.append("isSystem");
sb.append('=');
sb.append(((this.isSystem == null)?"":this.isSystem));
sb.append(',');
sb.append("isUntested");
sb.append('=');
sb.append(((this.isUntested == null)?"":this.isUntested));
sb.append(',');
sb.append("label");
sb.append('=');
sb.append(((this.label == null)?"":this.label));
sb.append(',');
sb.append("name");
sb.append('=');
sb.append(((this.name == null)?"":this.name));
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.isSystem == null)? 0 :this.isSystem.hashCode()));
result = ((result* 31)+((this.colorDark == null)? 0 :this.colorDark.hashCode()));
result = ((result* 31)+((this.isUntested == null)? 0 :this.isUntested.hashCode()));
result = ((result* 31)+((this.colorBright == null)? 0 :this.colorBright.hashCode()));
result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
result = ((result* 31)+((this.isFinal == null)? 0 :this.isFinal.hashCode()));
result = ((result* 31)+((this.label == null)? 0 :this.label.hashCode()));
result = ((result* 31)+((this.colorMedium == null)? 0 :this.colorMedium.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TRStatus) == false) {
return false;
}
TRStatus rhs = ((TRStatus) other);
return ((((((((((this.isSystem == rhs.isSystem)||((this.isSystem!= null)&&this.isSystem.equals(rhs.isSystem)))&&((this.colorDark == rhs.colorDark)||((this.colorDark!= null)&&this.colorDark.equals(rhs.colorDark))))&&((this.isUntested == rhs.isUntested)||((this.isUntested!= null)&&this.isUntested.equals(rhs.isUntested))))&&((this.colorBright == rhs.colorBright)||((this.colorBright!= null)&&this.colorBright.equals(rhs.colorBright))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.isFinal == rhs.isFinal)||((this.isFinal!= null)&&this.isFinal.equals(rhs.isFinal))))&&((this.label == rhs.label)||((this.label!= null)&&this.label.equals(rhs.label))))&&((this.colorMedium == rhs.colorMedium)||((this.colorMedium!= null)&&this.colorMedium.equals(rhs.colorMedium))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy