All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.touchbit.testrail4j.gson.model.TRResultField Maven / Gradle / Ivy

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 TRResultField {

    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("configs")
    @Expose
    private List configs = new ArrayList();
    @SerializedName("template_ids")
    @Expose
    private List templateIds = new ArrayList();
    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("description")
    @Expose
    private String description;
    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("display_order")
    @Expose
    private Long displayOrder;
    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("id")
    @Expose
    private Long id;
    @SerializedName("include_all")
    @Expose
    private Boolean includeAll;
    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("label")
    @Expose
    private String label;
    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("name")
    @Expose
    private String name;
    @SerializedName("is_active")
    @Expose
    private Boolean isActive;
    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("system_name")
    @Expose
    private String systemName;
    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("type_id")
    @Expose
    private Long typeId;

    /**
     * No args constructor for use in serialization
     * 
     */
    public TRResultField() {
    }

    /**
     * 
     * @param configs
     * @param templateIds
     * @param systemName
     * @param displayOrder
     * @param name
     * @param description
     * @param includeAll
     * @param typeId
     * @param id
     * @param label
     * @param isActive
     */
    public TRResultField(List configs, List templateIds, String description, Long displayOrder, Long id, Boolean includeAll, String label, String name, Boolean isActive, String systemName, Long typeId) {
        super();
        this.configs = configs;
        this.templateIds = templateIds;
        this.description = description;
        this.displayOrder = displayOrder;
        this.id = id;
        this.includeAll = includeAll;
        this.label = label;
        this.name = name;
        this.isActive = isActive;
        this.systemName = systemName;
        this.typeId = typeId;
    }

    /**
     * 
     * (Required)
     * 
     */
    public List getConfigs() {
        return configs;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setConfigs(List configs) {
        this.configs = configs;
    }

    public TRResultField withConfigs(List configs) {
        this.configs = configs;
        return this;
    }

    public List getTemplateIds() {
        return templateIds;
    }

    public void setTemplateIds(List templateIds) {
        this.templateIds = templateIds;
    }

    public TRResultField withTemplateIds(List templateIds) {
        this.templateIds = templateIds;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    public String getDescription() {
        return description;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setDescription(String description) {
        this.description = description;
    }

    public TRResultField withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    public Long getDisplayOrder() {
        return displayOrder;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setDisplayOrder(Long displayOrder) {
        this.displayOrder = displayOrder;
    }

    public TRResultField withDisplayOrder(Long displayOrder) {
        this.displayOrder = displayOrder;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    public TRResultField withId(Long id) {
        this.id = id;
        return this;
    }

    public Boolean getIncludeAll() {
        return includeAll;
    }

    public void setIncludeAll(Boolean includeAll) {
        this.includeAll = includeAll;
    }

    public TRResultField withIncludeAll(Boolean includeAll) {
        this.includeAll = includeAll;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    public String getLabel() {
        return label;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setLabel(String label) {
        this.label = label;
    }

    public TRResultField withLabel(String label) {
        this.label = label;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    public String getName() {
        return name;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setName(String name) {
        this.name = name;
    }

    public TRResultField withName(String name) {
        this.name = name;
        return this;
    }

    public Boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    public TRResultField withIsActive(Boolean isActive) {
        this.isActive = isActive;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    public String getSystemName() {
        return systemName;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public TRResultField withSystemName(String systemName) {
        this.systemName = systemName;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    public Long getTypeId() {
        return typeId;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public TRResultField withTypeId(Long typeId) {
        this.typeId = typeId;
        return this;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(TRResultField.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("templateIds");
        sb.append('=');
        sb.append(((this.templateIds == null)?"":this.templateIds));
        sb.append(',');
        sb.append("description");
        sb.append('=');
        sb.append(((this.description == null)?"":this.description));
        sb.append(',');
        sb.append("displayOrder");
        sb.append('=');
        sb.append(((this.displayOrder == null)?"":this.displayOrder));
        sb.append(',');
        sb.append("id");
        sb.append('=');
        sb.append(((this.id == null)?"":this.id));
        sb.append(',');
        sb.append("includeAll");
        sb.append('=');
        sb.append(((this.includeAll == null)?"":this.includeAll));
        sb.append(',');
        sb.append("label");
        sb.append('=');
        sb.append(((this.label == null)?"":this.label));
        sb.append(',');
        sb.append("name");
        sb.append('=');
        sb.append(((this.name == null)?"":this.name));
        sb.append(',');
        sb.append("isActive");
        sb.append('=');
        sb.append(((this.isActive == null)?"":this.isActive));
        sb.append(',');
        sb.append("systemName");
        sb.append('=');
        sb.append(((this.systemName == null)?"":this.systemName));
        sb.append(',');
        sb.append("typeId");
        sb.append('=');
        sb.append(((this.typeId == null)?"":this.typeId));
        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.configs == null)? 0 :this.configs.hashCode()));
        result = ((result* 31)+((this.templateIds == null)? 0 :this.templateIds.hashCode()));
        result = ((result* 31)+((this.systemName == null)? 0 :this.systemName.hashCode()));
        result = ((result* 31)+((this.displayOrder == null)? 0 :this.displayOrder.hashCode()));
        result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode()));
        result = ((result* 31)+((this.description == null)? 0 :this.description.hashCode()));
        result = ((result* 31)+((this.includeAll == null)? 0 :this.includeAll.hashCode()));
        result = ((result* 31)+((this.typeId == null)? 0 :this.typeId.hashCode()));
        result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
        result = ((result* 31)+((this.label == null)? 0 :this.label.hashCode()));
        result = ((result* 31)+((this.isActive == null)? 0 :this.isActive.hashCode()));
        return result;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof TRResultField) == false) {
            return false;
        }
        TRResultField rhs = ((TRResultField) other);
        return ((((((((((((this.configs == rhs.configs)||((this.configs!= null)&&this.configs.equals(rhs.configs)))&&((this.templateIds == rhs.templateIds)||((this.templateIds!= null)&&this.templateIds.equals(rhs.templateIds))))&&((this.systemName == rhs.systemName)||((this.systemName!= null)&&this.systemName.equals(rhs.systemName))))&&((this.displayOrder == rhs.displayOrder)||((this.displayOrder!= null)&&this.displayOrder.equals(rhs.displayOrder))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description))))&&((this.includeAll == rhs.includeAll)||((this.includeAll!= null)&&this.includeAll.equals(rhs.includeAll))))&&((this.typeId == rhs.typeId)||((this.typeId!= null)&&this.typeId.equals(rhs.typeId))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.label == rhs.label)||((this.label!= null)&&this.label.equals(rhs.label))))&&((this.isActive == rhs.isActive)||((this.isActive!= null)&&this.isActive.equals(rhs.isActive))));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy