
org.touchbit.testrail4j.gson.model.Options__1 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 Options__1 {
/**
*
* (Required)
*
*/
@SerializedName("format")
@Expose
private String format;
/**
*
* (Required)
*
*/
@SerializedName("has_actual")
@Expose
private Boolean hasActual;
/**
*
* (Required)
*
*/
@SerializedName("has_expected")
@Expose
private Boolean hasExpected;
/**
*
* (Required)
*
*/
@SerializedName("is_required")
@Expose
private Boolean isRequired;
@SerializedName("rows")
@Expose
private String rows;
/**
* No args constructor for use in serialization
*
*/
public Options__1() {
}
/**
*
* @param isRequired
* @param hasExpected
* @param format
* @param hasActual
* @param rows
*/
public Options__1(String format, Boolean hasActual, Boolean hasExpected, Boolean isRequired, String rows) {
super();
this.format = format;
this.hasActual = hasActual;
this.hasExpected = hasExpected;
this.isRequired = isRequired;
this.rows = rows;
}
/**
*
* (Required)
*
*/
public String getFormat() {
return format;
}
/**
*
* (Required)
*
*/
public void setFormat(String format) {
this.format = format;
}
public Options__1 withFormat(String format) {
this.format = format;
return this;
}
/**
*
* (Required)
*
*/
public Boolean getHasActual() {
return hasActual;
}
/**
*
* (Required)
*
*/
public void setHasActual(Boolean hasActual) {
this.hasActual = hasActual;
}
public Options__1 withHasActual(Boolean hasActual) {
this.hasActual = hasActual;
return this;
}
/**
*
* (Required)
*
*/
public Boolean getHasExpected() {
return hasExpected;
}
/**
*
* (Required)
*
*/
public void setHasExpected(Boolean hasExpected) {
this.hasExpected = hasExpected;
}
public Options__1 withHasExpected(Boolean hasExpected) {
this.hasExpected = hasExpected;
return this;
}
/**
*
* (Required)
*
*/
public Boolean getIsRequired() {
return isRequired;
}
/**
*
* (Required)
*
*/
public void setIsRequired(Boolean isRequired) {
this.isRequired = isRequired;
}
public Options__1 withIsRequired(Boolean isRequired) {
this.isRequired = isRequired;
return this;
}
public String getRows() {
return rows;
}
public void setRows(String rows) {
this.rows = rows;
}
public Options__1 withRows(String rows) {
this.rows = rows;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Options__1 .class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("format");
sb.append('=');
sb.append(((this.format == null)?"":this.format));
sb.append(',');
sb.append("hasActual");
sb.append('=');
sb.append(((this.hasActual == null)?"":this.hasActual));
sb.append(',');
sb.append("hasExpected");
sb.append('=');
sb.append(((this.hasExpected == null)?"":this.hasExpected));
sb.append(',');
sb.append("isRequired");
sb.append('=');
sb.append(((this.isRequired == null)?"":this.isRequired));
sb.append(',');
sb.append("rows");
sb.append('=');
sb.append(((this.rows == null)?"":this.rows));
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.format == null)? 0 :this.format.hashCode()));
result = ((result* 31)+((this.hasActual == null)? 0 :this.hasActual.hashCode()));
result = ((result* 31)+((this.isRequired == null)? 0 :this.isRequired.hashCode()));
result = ((result* 31)+((this.rows == null)? 0 :this.rows.hashCode()));
result = ((result* 31)+((this.hasExpected == null)? 0 :this.hasExpected.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Options__1) == false) {
return false;
}
Options__1 rhs = ((Options__1) other);
return ((((((this.format == rhs.format)||((this.format!= null)&&this.format.equals(rhs.format)))&&((this.hasActual == rhs.hasActual)||((this.hasActual!= null)&&this.hasActual.equals(rhs.hasActual))))&&((this.isRequired == rhs.isRequired)||((this.isRequired!= null)&&this.isRequired.equals(rhs.isRequired))))&&((this.rows == rhs.rows)||((this.rows!= null)&&this.rows.equals(rhs.rows))))&&((this.hasExpected == rhs.hasExpected)||((this.hasExpected!= null)&&this.hasExpected.equals(rhs.hasExpected))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy