org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson2-api-model Show documentation
Show all versions of jackson2-api-model Show documentation
Jackson2 annotation models for TestRail API
The newest version!
package org.touchbit.testrail4j.jackson2.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"configs",
"id",
"name",
"project_id"
})
public class TRProjectConfigGroup {
@JsonProperty("configs")
private List configs = new ArrayList();
@JsonProperty("id")
private Long id;
/**
*
* (Required)
*
*/
@JsonProperty("name")
private String name;
@JsonProperty("project_id")
private Long projectId;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* 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;
}
@JsonProperty("configs")
public List getConfigs() {
return configs;
}
@JsonProperty("configs")
public void setConfigs(List configs) {
this.configs = configs;
}
public TRProjectConfigGroup withConfigs(List configs) {
this.configs = configs;
return this;
}
@JsonProperty("id")
public Long getId() {
return id;
}
@JsonProperty("id")
public void setId(Long id) {
this.id = id;
}
public TRProjectConfigGroup withId(Long id) {
this.id = id;
return this;
}
/**
*
* (Required)
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
*
* (Required)
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public TRProjectConfigGroup withName(String name) {
this.name = name;
return this;
}
@JsonProperty("project_id")
public Long getProjectId() {
return projectId;
}
@JsonProperty("project_id")
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public TRProjectConfigGroup withProjectId(Long projectId) {
this.projectId = projectId;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public TRProjectConfigGroup withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
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(',');
sb.append("additionalProperties");
sb.append('=');
sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
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.additionalProperties == null)? 0 :this.additionalProperties.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.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.projectId == rhs.projectId)||((this.projectId!= null)&&this.projectId.equals(rhs.projectId))));
}
}