
org.touchbit.testrail4j.gson.model.Options 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 {
@SerializedName("default_value")
@Expose
private String defaultValue;
@SerializedName("format")
@Expose
private String format;
@SerializedName("is_required")
@Expose
private Boolean isRequired;
@SerializedName("rows")
@Expose
private String rows;
@SerializedName("items")
@Expose
private String items;
@SerializedName("id")
@Expose
private String id;
/**
* No args constructor for use in serialization
*
*/
public Options() {
}
/**
*
* @param isRequired
* @param defaultValue
* @param format
* @param id
* @param rows
* @param items
*/
public Options(String defaultValue, String format, Boolean isRequired, String rows, String items, String id) {
super();
this.defaultValue = defaultValue;
this.format = format;
this.isRequired = isRequired;
this.rows = rows;
this.items = items;
this.id = id;
}
public String getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
public Options withDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
public String getFormat() {
return format;
}
public void setFormat(String format) {
this.format = format;
}
public Options withFormat(String format) {
this.format = format;
return this;
}
public Boolean getIsRequired() {
return isRequired;
}
public void setIsRequired(Boolean isRequired) {
this.isRequired = isRequired;
}
public Options withIsRequired(Boolean isRequired) {
this.isRequired = isRequired;
return this;
}
public String getRows() {
return rows;
}
public void setRows(String rows) {
this.rows = rows;
}
public Options withRows(String rows) {
this.rows = rows;
return this;
}
public String getItems() {
return items;
}
public void setItems(String items) {
this.items = items;
}
public Options withItems(String items) {
this.items = items;
return this;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Options withId(String id) {
this.id = id;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Options.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("defaultValue");
sb.append('=');
sb.append(((this.defaultValue == null)?"":this.defaultValue));
sb.append(',');
sb.append("format");
sb.append('=');
sb.append(((this.format == null)?"":this.format));
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(',');
sb.append("items");
sb.append('=');
sb.append(((this.items == null)?"":this.items));
sb.append(',');
sb.append("id");
sb.append('=');
sb.append(((this.id == null)?"":this.id));
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.isRequired == null)? 0 :this.isRequired.hashCode()));
result = ((result* 31)+((this.defaultValue == null)? 0 :this.defaultValue.hashCode()));
result = ((result* 31)+((this.format == null)? 0 :this.format.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
result = ((result* 31)+((this.rows == null)? 0 :this.rows.hashCode()));
result = ((result* 31)+((this.items == null)? 0 :this.items.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Options) == false) {
return false;
}
Options rhs = ((Options) other);
return (((((((this.isRequired == rhs.isRequired)||((this.isRequired!= null)&&this.isRequired.equals(rhs.isRequired)))&&((this.defaultValue == rhs.defaultValue)||((this.defaultValue!= null)&&this.defaultValue.equals(rhs.defaultValue))))&&((this.format == rhs.format)||((this.format!= null)&&this.format.equals(rhs.format))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.rows == rhs.rows)||((this.rows!= null)&&this.rows.equals(rhs.rows))))&&((this.items == rhs.items)||((this.items!= null)&&this.items.equals(rhs.items))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy