org.touchbit.testrail4j.gson.model.TRResultFieldConfig 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 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 TRResultFieldConfig {
/**
*
* (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 TRResultFieldConfig() {
}
/**
*
* @param context
* @param options
* @param id
*/
public TRResultFieldConfig(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 TRResultFieldConfig withContext(Context_ context) {
this.context = context;
return this;
}
/**
*
* (Required)
*
*/
public String getId() {
return id;
}
/**
*
* (Required)
*
*/
public void setId(String id) {
this.id = id;
}
public TRResultFieldConfig withId(String id) {
this.id = id;
return this;
}
/**
*
* (Required)
*
*/
public Options_ getOptions() {
return options;
}
/**
*
* (Required)
*
*/
public void setOptions(Options_ options) {
this.options = options;
}
public TRResultFieldConfig withOptions(Options_ options) {
this.options = options;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("context", context).append("id", id).append("options", options).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(context).append(options).append(id).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TRResultFieldConfig) == false) {
return false;
}
TRResultFieldConfig rhs = ((TRResultFieldConfig) other);
return new EqualsBuilder().append(context, rhs.context).append(options, rhs.options).append(id, rhs.id).isEquals();
}
}