com.katalon.testops.model.ProjectResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testops-client-openapi Show documentation
Show all versions of testops-client-openapi Show documentation
Katalon TestOps Client generated by OpenAPI
/*
* Katalon TestOps API reference
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.katalon.testops.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.katalon.testops.model.TeamResource;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* ProjectResource
*/
public class ProjectResource {
@JsonProperty("id")
private Long id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("teamId")
private Long teamId = null;
@JsonProperty("team")
private TeamResource team = null;
@JsonProperty("timezone")
private String timezone = null;
public ProjectResource id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@Schema(description = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public ProjectResource name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@Schema(description = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ProjectResource teamId(Long teamId) {
this.teamId = teamId;
return this;
}
/**
* Get teamId
* @return teamId
**/
@Schema(description = "")
public Long getTeamId() {
return teamId;
}
public void setTeamId(Long teamId) {
this.teamId = teamId;
}
public ProjectResource team(TeamResource team) {
this.team = team;
return this;
}
/**
* Get team
* @return team
**/
@Schema(description = "")
public TeamResource getTeam() {
return team;
}
public void setTeam(TeamResource team) {
this.team = team;
}
public ProjectResource timezone(String timezone) {
this.timezone = timezone;
return this;
}
/**
* Get timezone
* @return timezone
**/
@Schema(description = "")
public String getTimezone() {
return timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProjectResource projectResource = (ProjectResource) o;
return Objects.equals(this.id, projectResource.id) &&
Objects.equals(this.name, projectResource.name) &&
Objects.equals(this.teamId, projectResource.teamId) &&
Objects.equals(this.team, projectResource.team) &&
Objects.equals(this.timezone, projectResource.timezone);
}
@Override
public int hashCode() {
return Objects.hash(id, name, teamId, team, timezone);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProjectResource {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n");
sb.append(" team: ").append(toIndentedString(team)).append("\n");
sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}