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