com.codepine.api.testrail.model.Configuration 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 java.util.List;
/**
* TestRail configuration.
*/
public class Configuration {
private int id;
private String name;
private int projectId;
private List configs;
public class Config {
private int id;
private String name;
private int groupId;
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Config() {
}
@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 int getGroupId() {
return this.groupId;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Config setId(final int id) {
this.id = id;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Config setName(final String name) {
this.name = name;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Config setGroupId(final int groupId) {
this.groupId = groupId;
return this;
}
@Override
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof Configuration.Config)) return false;
final Config other = (Config)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;
if (this.getGroupId() != other.getGroupId()) return false;
return true;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final Object other) {
return other instanceof Configuration.Config;
}
@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());
result = result * PRIME + this.getGroupId();
return result;
}
@Override
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String toString() {
return "Configuration.Config(id=" + this.getId() + ", name=" + this.getName() + ", groupId=" + this.getGroupId() + ")";
}
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Configuration() {
}
@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 int getProjectId() {
return this.projectId;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public List getConfigs() {
return this.configs;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Configuration setId(final int id) {
this.id = id;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Configuration setName(final String name) {
this.name = name;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Configuration setProjectId(final int projectId) {
this.projectId = projectId;
return this;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Configuration setConfigs(final List configs) {
this.configs = configs;
return this;
}
@Override
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof Configuration)) return false;
final Configuration other = (Configuration)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;
if (this.getProjectId() != other.getProjectId()) return false;
final Object this$configs = this.getConfigs();
final Object other$configs = other.getConfigs();
if (this$configs == null ? other$configs != null : !this$configs.equals(other$configs)) return false;
return true;
}
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final Object other) {
return other instanceof Configuration;
}
@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());
result = result * PRIME + this.getProjectId();
final Object $configs = this.getConfigs();
result = result * PRIME + ($configs == null ? 0 : $configs.hashCode());
return result;
}
@Override
@SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String toString() {
return "Configuration(id=" + this.getId() + ", name=" + this.getName() + ", projectId=" + this.getProjectId() + ", configs=" + this.getConfigs() + ")";
}
}