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

com.codepine.api.testrail.model.Status Maven / Gradle / Ivy

// Generated by delombok at Sat Feb 27 13:39:31 PST 2016
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 Kunal Shah
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.codepine.api.testrail.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * TestRail status.
 */
public class Status {
    private int id;
    private String name;
    private String label;
    private int colorDark;
    private int colorMedium;
    private int colorBright;
    @JsonProperty
    private boolean isSystem;
    @JsonProperty
    private boolean isUntested;
    @JsonProperty
    private boolean isFinal;

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status() {
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getId() {
        return this.id;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getName() {
        return this.name;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getLabel() {
        return this.label;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getColorDark() {
        return this.colorDark;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getColorMedium() {
        return this.colorMedium;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int getColorBright() {
        return this.colorBright;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setId(final int id) {
        this.id = id;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setName(final String name) {
        this.name = name;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setLabel(final String label) {
        this.label = label;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setColorDark(final int colorDark) {
        this.colorDark = colorDark;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setColorMedium(final int colorMedium) {
        this.colorMedium = colorMedium;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setColorBright(final int colorBright) {
        this.colorBright = colorBright;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setSystem(final boolean isSystem) {
        this.isSystem = isSystem;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setUntested(final boolean isUntested) {
        this.isUntested = isUntested;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Status setFinal(final boolean isFinal) {
        this.isFinal = isFinal;
        return this;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Status)) return false;
        final Status other = (Status)o;
        if (!other.canEqual((Object)this)) return false;
        if (this.getId() != other.getId()) return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final Object this$label = this.getLabel();
        final Object other$label = other.getLabel();
        if (this$label == null ? other$label != null : !this$label.equals(other$label)) return false;
        if (this.getColorDark() != other.getColorDark()) return false;
        if (this.getColorMedium() != other.getColorMedium()) return false;
        if (this.getColorBright() != other.getColorBright()) return false;
        if (this.isSystem() != other.isSystem()) return false;
        if (this.isUntested() != other.isUntested()) return false;
        if (this.isFinal() != other.isFinal()) return false;
        return true;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    protected boolean canEqual(final Object other) {
        return other instanceof Status;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getId();
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 0 : $name.hashCode());
        final Object $label = this.getLabel();
        result = result * PRIME + ($label == null ? 0 : $label.hashCode());
        result = result * PRIME + this.getColorDark();
        result = result * PRIME + this.getColorMedium();
        result = result * PRIME + this.getColorBright();
        result = result * PRIME + (this.isSystem() ? 79 : 97);
        result = result * PRIME + (this.isUntested() ? 79 : 97);
        result = result * PRIME + (this.isFinal() ? 79 : 97);
        return result;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String toString() {
        return "Status(id=" + this.getId() + ", name=" + this.getName() + ", label=" + this.getLabel() + ", colorDark=" + this.getColorDark() + ", colorMedium=" + this.getColorMedium() + ", colorBright=" + this.getColorBright() + ", isSystem=" + this.isSystem() + ", isUntested=" + this.isUntested() + ", isFinal=" + this.isFinal() + ")";
    }

    @JsonIgnore
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public boolean isSystem() {
        return this.isSystem;
    }

    @JsonIgnore
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public boolean isUntested() {
        return this.isUntested;
    }

    @JsonIgnore
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public boolean isFinal() {
        return this.isFinal;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy