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

com.codepine.api.testrail.model.Suite 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.codepine.api.testrail.TestRail;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonView;

/**
 * TestRail suite.
 */
public class Suite {
    private int id;
    @JsonView({TestRail.Suites.Add.class, TestRail.Suites.Update.class})
    private String name;
    @JsonView({TestRail.Suites.Add.class, TestRail.Suites.Update.class})
    private String description;
    private int projectId;
    @JsonProperty
    private boolean isBaseline;
    @JsonProperty
    private boolean isCompleted;
    @JsonProperty
    private boolean isMaster;
    private String url;

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

    @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 getDescription() {
        return this.description;
    }

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

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

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

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

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Suite setDescription(final String description) {
        this.description = description;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Suite setProjectId(final int projectId) {
        this.projectId = projectId;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Suite setBaseline(final boolean isBaseline) {
        this.isBaseline = isBaseline;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Suite setCompleted(final boolean isCompleted) {
        this.isCompleted = isCompleted;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Suite setMaster(final boolean isMaster) {
        this.isMaster = isMaster;
        return this;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Suite setUrl(final String url) {
        this.url = url;
        return this;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Suite)) return false;
        final Suite other = (Suite)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$description = this.getDescription();
        final Object other$description = other.getDescription();
        if (this$description == null ? other$description != null : !this$description.equals(other$description)) return false;
        if (this.getProjectId() != other.getProjectId()) return false;
        if (this.isBaseline() != other.isBaseline()) return false;
        if (this.isCompleted() != other.isCompleted()) return false;
        if (this.isMaster() != other.isMaster()) return false;
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        if (this$url == null ? other$url != null : !this$url.equals(other$url)) return false;
        return true;
    }

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

    @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 $description = this.getDescription();
        result = result * PRIME + ($description == null ? 0 : $description.hashCode());
        result = result * PRIME + this.getProjectId();
        result = result * PRIME + (this.isBaseline() ? 79 : 97);
        result = result * PRIME + (this.isCompleted() ? 79 : 97);
        result = result * PRIME + (this.isMaster() ? 79 : 97);
        final Object $url = this.getUrl();
        result = result * PRIME + ($url == null ? 0 : $url.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String toString() {
        return "Suite(id=" + this.getId() + ", name=" + this.getName() + ", description=" + this.getDescription() + ", projectId=" + this.getProjectId() + ", isBaseline=" + this.isBaseline() + ", isCompleted=" + this.isCompleted() + ", isMaster=" + this.isMaster() + ", url=" + this.getUrl() + ")";
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy