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