
org.touchbit.testrail4j.gson.model.TRCaseFieldConfig 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 TRCaseFieldConfig {
/**
*
* (Required)
*
*/
@SerializedName("context")
@Expose
private Context context;
/**
*
* (Required)
*
*/
@SerializedName("id")
@Expose
private String id;
/**
*
* (Required)
*
*/
@SerializedName("options")
@Expose
private Options options;
/**
* No args constructor for use in serialization
*
*/
public TRCaseFieldConfig() {
}
/**
*
* @param context
* @param options
* @param id
*/
public TRCaseFieldConfig(Context context, String id, Options options) {
super();
this.context = context;
this.id = id;
this.options = options;
}
/**
*
* (Required)
*
*/
public Context getContext() {
return context;
}
/**
*
* (Required)
*
*/
public void setContext(Context context) {
this.context = context;
}
public TRCaseFieldConfig withContext(Context context) {
this.context = context;
return this;
}
/**
*
* (Required)
*
*/
public String getId() {
return id;
}
/**
*
* (Required)
*
*/
public void setId(String id) {
this.id = id;
}
public TRCaseFieldConfig withId(String id) {
this.id = id;
return this;
}
/**
*
* (Required)
*
*/
public Options getOptions() {
return options;
}
/**
*
* (Required)
*
*/
public void setOptions(Options options) {
this.options = options;
}
public TRCaseFieldConfig withOptions(Options options) {
this.options = options;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(TRCaseFieldConfig.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("context");
sb.append('=');
sb.append(((this.context == null)?"":this.context));
sb.append(',');
sb.append("id");
sb.append('=');
sb.append(((this.id == null)?"":this.id));
sb.append(',');
sb.append("options");
sb.append('=');
sb.append(((this.options == null)?"":this.options));
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.context == null)? 0 :this.context.hashCode()));
result = ((result* 31)+((this.options == null)? 0 :this.options.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TRCaseFieldConfig) == false) {
return false;
}
TRCaseFieldConfig rhs = ((TRCaseFieldConfig) other);
return ((((this.context == rhs.context)||((this.context!= null)&&this.context.equals(rhs.context)))&&((this.options == rhs.options)||((this.options!= null)&&this.options.equals(rhs.options))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy