com.codepine.api.testrail.model.Section 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.JsonView;
/**
* TestRail section.
*/
public class Section {
private int id;
@JsonView({TestRail.Sections.Add.class, TestRail.Sections.Update.class})
private String name;
@JsonView(TestRail.Sections.Add.class)
private Integer suiteId;
@JsonView(TestRail.Sections.Add.class)
private Integer parentId;
private int depth;
private int displayOrder;
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Section() {
}
@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 Integer getSuiteId() {
return this.suiteId;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Integer getParentId() {
return this.parentId;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public int getDepth() {
return this.depth;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public int getDisplayOrder() {
return this.displayOrder;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Section setId(final int id) {
this.id = id;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Section setName(final String name) {
this.name = name;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Section setSuiteId(final Integer suiteId) {
this.suiteId = suiteId;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Section setParentId(final Integer parentId) {
this.parentId = parentId;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Section setDepth(final int depth) {
this.depth = depth;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Section setDisplayOrder(final int displayOrder) {
this.displayOrder = displayOrder;
return this;
}
@Override
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof Section)) return false;
final Section other = (Section)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$suiteId = this.getSuiteId();
final Object other$suiteId = other.getSuiteId();
if (this$suiteId == null ? other$suiteId != null : !this$suiteId.equals(other$suiteId)) return false;
final Object this$parentId = this.getParentId();
final Object other$parentId = other.getParentId();
if (this$parentId == null ? other$parentId != null : !this$parentId.equals(other$parentId)) return false;
if (this.getDepth() != other.getDepth()) return false;
if (this.getDisplayOrder() != other.getDisplayOrder()) return false;
return true;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final Object other) {
return other instanceof Section;
}
@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 $suiteId = this.getSuiteId();
result = result * PRIME + ($suiteId == null ? 0 : $suiteId.hashCode());
final Object $parentId = this.getParentId();
result = result * PRIME + ($parentId == null ? 0 : $parentId.hashCode());
result = result * PRIME + this.getDepth();
result = result * PRIME + this.getDisplayOrder();
return result;
}
@Override
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String toString() {
return "Section(id=" + this.getId() + ", name=" + this.getName() + ", suiteId=" + this.getSuiteId() + ", parentId=" + this.getParentId() + ", depth=" + this.getDepth() + ", displayOrder=" + this.getDisplayOrder() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy