com.codepine.api.testrail.model.Priority Maven / Gradle / Ivy
The newest version!
// Generated by delombok at Thu Oct 07 21:30:00 PDT 2021
/*
* 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 test case priority.
*/
public class Priority {
private int id;
private String name;
private String shortName;
private int priority;
@JsonProperty
private boolean isDefault;
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Priority() {
}
@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 getShortName() {
return this.shortName;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public int getPriority() {
return this.priority;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Priority setId(final int id) {
this.id = id;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Priority setName(final String name) {
this.name = name;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Priority setShortName(final String shortName) {
this.shortName = shortName;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Priority setPriority(final int priority) {
this.priority = priority;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Priority setDefault(final boolean isDefault) {
this.isDefault = isDefault;
return this;
}
@Override
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof Priority)) return false;
final Priority other = (Priority)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$shortName = this.getShortName();
final Object other$shortName = other.getShortName();
if (this$shortName == null ? other$shortName != null : !this$shortName.equals(other$shortName)) return false;
if (this.getPriority() != other.getPriority()) return false;
if (this.isDefault() != other.isDefault()) return false;
return true;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final Object other) {
return other instanceof Priority;
}
@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 $shortName = this.getShortName();
result = result * PRIME + ($shortName == null ? 0 : $shortName.hashCode());
result = result * PRIME + this.getPriority();
result = result * PRIME + (this.isDefault() ? 79 : 97);
return result;
}
@Override
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String toString() {
return "Priority(id=" + this.getId() + ", name=" + this.getName() + ", shortName=" + this.getShortName() + ", priority=" + this.getPriority() + ", isDefault=" + this.isDefault() + ")";
}
@JsonIgnore
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public boolean isDefault() {
return this.isDefault;
}
}