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

org.touchbit.testrail4j.jackson2.model.TRStatus Maven / Gradle / Ivy

The newest version!

package org.touchbit.testrail4j.jackson2.model;

import java.util.HashMap;
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({
    "color_bright",
    "color_dark",
    "color_medium",
    "id",
    "is_final",
    "is_system",
    "is_untested",
    "label",
    "name"
})
public class TRStatus {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_bright")
    private Long colorBright;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_dark")
    private Long colorDark;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_medium")
    private Long colorMedium;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("id")
    private Long id;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_final")
    private Boolean isFinal;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_system")
    private Boolean isSystem;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_untested")
    private Boolean isUntested;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("label")
    private String label;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("name")
    private String name;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

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

    /**
     * 
     * @param isSystem
     * @param colorDark
     * @param isUntested
     * @param colorBright
     * @param name
     * @param id
     * @param isFinal
     * @param label
     * @param colorMedium
     */
    public TRStatus(Long colorBright, Long colorDark, Long colorMedium, Long id, Boolean isFinal, Boolean isSystem, Boolean isUntested, String label, String name) {
        super();
        this.colorBright = colorBright;
        this.colorDark = colorDark;
        this.colorMedium = colorMedium;
        this.id = id;
        this.isFinal = isFinal;
        this.isSystem = isSystem;
        this.isUntested = isUntested;
        this.label = label;
        this.name = name;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_bright")
    public Long getColorBright() {
        return colorBright;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_bright")
    public void setColorBright(Long colorBright) {
        this.colorBright = colorBright;
    }

    public TRStatus withColorBright(Long colorBright) {
        this.colorBright = colorBright;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_dark")
    public Long getColorDark() {
        return colorDark;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_dark")
    public void setColorDark(Long colorDark) {
        this.colorDark = colorDark;
    }

    public TRStatus withColorDark(Long colorDark) {
        this.colorDark = colorDark;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_medium")
    public Long getColorMedium() {
        return colorMedium;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("color_medium")
    public void setColorMedium(Long colorMedium) {
        this.colorMedium = colorMedium;
    }

    public TRStatus withColorMedium(Long colorMedium) {
        this.colorMedium = colorMedium;
        return this;
    }

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

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

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

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_final")
    public Boolean getIsFinal() {
        return isFinal;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_final")
    public void setIsFinal(Boolean isFinal) {
        this.isFinal = isFinal;
    }

    public TRStatus withIsFinal(Boolean isFinal) {
        this.isFinal = isFinal;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_system")
    public Boolean getIsSystem() {
        return isSystem;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_system")
    public void setIsSystem(Boolean isSystem) {
        this.isSystem = isSystem;
    }

    public TRStatus withIsSystem(Boolean isSystem) {
        this.isSystem = isSystem;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_untested")
    public Boolean getIsUntested() {
        return isUntested;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_untested")
    public void setIsUntested(Boolean isUntested) {
        this.isUntested = isUntested;
    }

    public TRStatus withIsUntested(Boolean isUntested) {
        this.isUntested = isUntested;
        return this;
    }

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

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

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

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

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

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

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public TRStatus withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(TRStatus.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
        sb.append("colorBright");
        sb.append('=');
        sb.append(((this.colorBright == null)?"":this.colorBright));
        sb.append(',');
        sb.append("colorDark");
        sb.append('=');
        sb.append(((this.colorDark == null)?"":this.colorDark));
        sb.append(',');
        sb.append("colorMedium");
        sb.append('=');
        sb.append(((this.colorMedium == null)?"":this.colorMedium));
        sb.append(',');
        sb.append("id");
        sb.append('=');
        sb.append(((this.id == null)?"":this.id));
        sb.append(',');
        sb.append("isFinal");
        sb.append('=');
        sb.append(((this.isFinal == null)?"":this.isFinal));
        sb.append(',');
        sb.append("isSystem");
        sb.append('=');
        sb.append(((this.isSystem == null)?"":this.isSystem));
        sb.append(',');
        sb.append("isUntested");
        sb.append('=');
        sb.append(((this.isUntested == null)?"":this.isUntested));
        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("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.isSystem == null)? 0 :this.isSystem.hashCode()));
        result = ((result* 31)+((this.colorDark == null)? 0 :this.colorDark.hashCode()));
        result = ((result* 31)+((this.isUntested == null)? 0 :this.isUntested.hashCode()));
        result = ((result* 31)+((this.colorBright == null)? 0 :this.colorBright.hashCode()));
        result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode()));
        result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
        result = ((result* 31)+((this.isFinal == null)? 0 :this.isFinal.hashCode()));
        result = ((result* 31)+((this.label == null)? 0 :this.label.hashCode()));
        result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
        result = ((result* 31)+((this.colorMedium == null)? 0 :this.colorMedium.hashCode()));
        return result;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof TRStatus) == false) {
            return false;
        }
        TRStatus rhs = ((TRStatus) other);
        return (((((((((((this.isSystem == rhs.isSystem)||((this.isSystem!= null)&&this.isSystem.equals(rhs.isSystem)))&&((this.colorDark == rhs.colorDark)||((this.colorDark!= null)&&this.colorDark.equals(rhs.colorDark))))&&((this.isUntested == rhs.isUntested)||((this.isUntested!= null)&&this.isUntested.equals(rhs.isUntested))))&&((this.colorBright == rhs.colorBright)||((this.colorBright!= null)&&this.colorBright.equals(rhs.colorBright))))&&((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.isFinal == rhs.isFinal)||((this.isFinal!= null)&&this.isFinal.equals(rhs.isFinal))))&&((this.label == rhs.label)||((this.label!= null)&&this.label.equals(rhs.label))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.colorMedium == rhs.colorMedium)||((this.colorMedium!= null)&&this.colorMedium.equals(rhs.colorMedium))));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy