
org.touchbit.testrail4j.gson.model.Context__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 java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Context__1 {
/**
*
* (Required)
*
*/
@SerializedName("is_global")
@Expose
private Boolean isGlobal;
/**
*
* (Required)
*
*/
@SerializedName("project_ids")
@Expose
private List projectIds = new ArrayList();
/**
* No args constructor for use in serialization
*
*/
public Context__1() {
}
/**
*
* @param isGlobal
* @param projectIds
*/
public Context__1(Boolean isGlobal, List projectIds) {
super();
this.isGlobal = isGlobal;
this.projectIds = projectIds;
}
/**
*
* (Required)
*
*/
public Boolean getIsGlobal() {
return isGlobal;
}
/**
*
* (Required)
*
*/
public void setIsGlobal(Boolean isGlobal) {
this.isGlobal = isGlobal;
}
public Context__1 withIsGlobal(Boolean isGlobal) {
this.isGlobal = isGlobal;
return this;
}
/**
*
* (Required)
*
*/
public List getProjectIds() {
return projectIds;
}
/**
*
* (Required)
*
*/
public void setProjectIds(List projectIds) {
this.projectIds = projectIds;
}
public Context__1 withProjectIds(List projectIds) {
this.projectIds = projectIds;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Context__1 .class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("isGlobal");
sb.append('=');
sb.append(((this.isGlobal == null)?"":this.isGlobal));
sb.append(',');
sb.append("projectIds");
sb.append('=');
sb.append(((this.projectIds == null)?"":this.projectIds));
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.isGlobal == null)? 0 :this.isGlobal.hashCode()));
result = ((result* 31)+((this.projectIds == null)? 0 :this.projectIds.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Context__1) == false) {
return false;
}
Context__1 rhs = ((Context__1) other);
return (((this.isGlobal == rhs.isGlobal)||((this.isGlobal!= null)&&this.isGlobal.equals(rhs.isGlobal)))&&((this.projectIds == rhs.projectIds)||((this.projectIds!= null)&&this.projectIds.equals(rhs.projectIds))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy