All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.katalon.testops.api.model.IncidentResource Maven / Gradle / Ivy
/*
* Katalon TestOps API reference
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.katalon.testops.api.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* IncidentResource
*/
@JsonPropertyOrder({
IncidentResource.JSON_PROPERTY_ID,
IncidentResource.JSON_PROPERTY_NAME,
IncidentResource.JSON_PROPERTY_DESCRIPTION,
IncidentResource.JSON_PROPERTY_PROJECT_ID,
IncidentResource.JSON_PROPERTY_TEAM_ID,
IncidentResource.JSON_PROPERTY_URL_IDS,
IncidentResource.JSON_PROPERTY_EXECUTION_TEST_RESULT_IDS,
IncidentResource.JSON_PROPERTY_ORDER,
IncidentResource.JSON_PROPERTY_CREATED_AT,
IncidentResource.JSON_PROPERTY_UPDATED_AT
})
@JsonTypeName("IncidentResource")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class IncidentResource implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID = "id";
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
private Long projectId;
public static final String JSON_PROPERTY_TEAM_ID = "teamId";
private Long teamId;
public static final String JSON_PROPERTY_URL_IDS = "urlIds";
private List urlIds = null;
public static final String JSON_PROPERTY_EXECUTION_TEST_RESULT_IDS = "executionTestResultIds";
private List executionTestResultIds = null;
public static final String JSON_PROPERTY_ORDER = "order";
private Long order;
public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
private OffsetDateTime createdAt;
public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt";
private OffsetDateTime updatedAt;
public IncidentResource id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public IncidentResource name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public IncidentResource description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public IncidentResource projectId(Long projectId) {
this.projectId = projectId;
return this;
}
/**
* Get projectId
* @return projectId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public IncidentResource teamId(Long teamId) {
this.teamId = teamId;
return this;
}
/**
* Get teamId
* @return teamId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TEAM_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTeamId() {
return teamId;
}
public void setTeamId(Long teamId) {
this.teamId = teamId;
}
public IncidentResource urlIds(List urlIds) {
this.urlIds = urlIds;
return this;
}
public IncidentResource addUrlIdsItem(String urlIdsItem) {
if (this.urlIds == null) {
this.urlIds = new ArrayList<>();
}
this.urlIds.add(urlIdsItem);
return this;
}
/**
* Get urlIds
* @return urlIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_URL_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getUrlIds() {
return urlIds;
}
public void setUrlIds(List urlIds) {
this.urlIds = urlIds;
}
public IncidentResource executionTestResultIds(List executionTestResultIds) {
this.executionTestResultIds = executionTestResultIds;
return this;
}
public IncidentResource addExecutionTestResultIdsItem(Long executionTestResultIdsItem) {
if (this.executionTestResultIds == null) {
this.executionTestResultIds = new ArrayList<>();
}
this.executionTestResultIds.add(executionTestResultIdsItem);
return this;
}
/**
* Get executionTestResultIds
* @return executionTestResultIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXECUTION_TEST_RESULT_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getExecutionTestResultIds() {
return executionTestResultIds;
}
public void setExecutionTestResultIds(List executionTestResultIds) {
this.executionTestResultIds = executionTestResultIds;
}
public IncidentResource order(Long order) {
this.order = order;
return this;
}
/**
* Get order
* @return order
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ORDER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getOrder() {
return order;
}
public void setOrder(Long order) {
this.order = order;
}
public IncidentResource createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public IncidentResource updatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
* @return updatedAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IncidentResource incidentResource = (IncidentResource) o;
return Objects.equals(this.id, incidentResource.id) &&
Objects.equals(this.name, incidentResource.name) &&
Objects.equals(this.description, incidentResource.description) &&
Objects.equals(this.projectId, incidentResource.projectId) &&
Objects.equals(this.teamId, incidentResource.teamId) &&
Objects.equals(this.urlIds, incidentResource.urlIds) &&
Objects.equals(this.executionTestResultIds, incidentResource.executionTestResultIds) &&
Objects.equals(this.order, incidentResource.order) &&
Objects.equals(this.createdAt, incidentResource.createdAt) &&
Objects.equals(this.updatedAt, incidentResource.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(id, name, description, projectId, teamId, urlIds, executionTestResultIds, order, createdAt, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IncidentResource {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n");
sb.append(" urlIds: ").append(toIndentedString(urlIds)).append("\n");
sb.append(" executionTestResultIds: ").append(toIndentedString(executionTestResultIds)).append("\n");
sb.append(" order: ").append(toIndentedString(order)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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 ");
}
}