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.ExecutionRequestResource 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 com.katalon.testops.api.model.ExecutionTestResultResource;
import com.katalon.testops.api.model.TestObjectResource;
import com.katalon.testops.api.model.UploadFileResource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ExecutionRequestResource
*/
@JsonPropertyOrder({
ExecutionRequestResource.JSON_PROPERTY_ID,
ExecutionRequestResource.JSON_PROPERTY_EXECUTION_TEST_RESULT,
ExecutionRequestResource.JSON_PROPERTY_OBJECT,
ExecutionRequestResource.JSON_PROPERTY_STATUS,
ExecutionRequestResource.JSON_PROPERTY_ABNORMAL,
ExecutionRequestResource.JSON_PROPERTY_PERCENT_ABNORMAL,
ExecutionRequestResource.JSON_PROPERTY_URL,
ExecutionRequestResource.JSON_PROPERTY_METHOD,
ExecutionRequestResource.JSON_PROPERTY_STATUS_TEXT,
ExecutionRequestResource.JSON_PROPERTY_TIME,
ExecutionRequestResource.JSON_PROPERTY_SIZE,
ExecutionRequestResource.JSON_PROPERTY_UPLOAD_FILE,
ExecutionRequestResource.JSON_PROPERTY_STARTED_AT
})
@JsonTypeName("ExecutionRequestResource")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ExecutionRequestResource 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_EXECUTION_TEST_RESULT = "executionTestResult";
private ExecutionTestResultResource executionTestResult;
public static final String JSON_PROPERTY_OBJECT = "object";
private TestObjectResource _object;
public static final String JSON_PROPERTY_STATUS = "status";
private Integer status;
public static final String JSON_PROPERTY_ABNORMAL = "abnormal";
private Boolean abnormal;
public static final String JSON_PROPERTY_PERCENT_ABNORMAL = "percentAbnormal";
private Double percentAbnormal;
public static final String JSON_PROPERTY_URL = "url";
private String url;
public static final String JSON_PROPERTY_METHOD = "method";
private String method;
public static final String JSON_PROPERTY_STATUS_TEXT = "statusText";
private String statusText;
public static final String JSON_PROPERTY_TIME = "time";
private Long time;
public static final String JSON_PROPERTY_SIZE = "size";
private Long size;
public static final String JSON_PROPERTY_UPLOAD_FILE = "uploadFile";
private UploadFileResource uploadFile;
public static final String JSON_PROPERTY_STARTED_AT = "startedAt";
private OffsetDateTime startedAt;
public ExecutionRequestResource 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 ExecutionRequestResource executionTestResult(ExecutionTestResultResource executionTestResult) {
this.executionTestResult = executionTestResult;
return this;
}
/**
* Get executionTestResult
* @return executionTestResult
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXECUTION_TEST_RESULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ExecutionTestResultResource getExecutionTestResult() {
return executionTestResult;
}
public void setExecutionTestResult(ExecutionTestResultResource executionTestResult) {
this.executionTestResult = executionTestResult;
}
public ExecutionRequestResource _object(TestObjectResource _object) {
this._object = _object;
return this;
}
/**
* Get _object
* @return _object
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OBJECT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public TestObjectResource getObject() {
return _object;
}
public void setObject(TestObjectResource _object) {
this._object = _object;
}
public ExecutionRequestResource status(Integer status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public ExecutionRequestResource abnormal(Boolean abnormal) {
this.abnormal = abnormal;
return this;
}
/**
* Get abnormal
* @return abnormal
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ABNORMAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAbnormal() {
return abnormal;
}
public void setAbnormal(Boolean abnormal) {
this.abnormal = abnormal;
}
public ExecutionRequestResource percentAbnormal(Double percentAbnormal) {
this.percentAbnormal = percentAbnormal;
return this;
}
/**
* Get percentAbnormal
* @return percentAbnormal
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PERCENT_ABNORMAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getPercentAbnormal() {
return percentAbnormal;
}
public void setPercentAbnormal(Double percentAbnormal) {
this.percentAbnormal = percentAbnormal;
}
public ExecutionRequestResource url(String url) {
this.url = url;
return this;
}
/**
* Get url
* @return url
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public ExecutionRequestResource method(String method) {
this.method = method;
return this;
}
/**
* Get method
* @return method
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_METHOD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public ExecutionRequestResource statusText(String statusText) {
this.statusText = statusText;
return this;
}
/**
* Get statusText
* @return statusText
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STATUS_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStatusText() {
return statusText;
}
public void setStatusText(String statusText) {
this.statusText = statusText;
}
public ExecutionRequestResource time(Long time) {
this.time = time;
return this;
}
/**
* Get time
* @return time
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTime() {
return time;
}
public void setTime(Long time) {
this.time = time;
}
public ExecutionRequestResource size(Long size) {
this.size = size;
return this;
}
/**
* Get size
* @return size
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
public ExecutionRequestResource uploadFile(UploadFileResource uploadFile) {
this.uploadFile = uploadFile;
return this;
}
/**
* Get uploadFile
* @return uploadFile
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UPLOAD_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UploadFileResource getUploadFile() {
return uploadFile;
}
public void setUploadFile(UploadFileResource uploadFile) {
this.uploadFile = uploadFile;
}
public ExecutionRequestResource startedAt(OffsetDateTime startedAt) {
this.startedAt = startedAt;
return this;
}
/**
* Get startedAt
* @return startedAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STARTED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getStartedAt() {
return startedAt;
}
public void setStartedAt(OffsetDateTime startedAt) {
this.startedAt = startedAt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExecutionRequestResource executionRequestResource = (ExecutionRequestResource) o;
return Objects.equals(this.id, executionRequestResource.id) &&
Objects.equals(this.executionTestResult, executionRequestResource.executionTestResult) &&
Objects.equals(this._object, executionRequestResource._object) &&
Objects.equals(this.status, executionRequestResource.status) &&
Objects.equals(this.abnormal, executionRequestResource.abnormal) &&
Objects.equals(this.percentAbnormal, executionRequestResource.percentAbnormal) &&
Objects.equals(this.url, executionRequestResource.url) &&
Objects.equals(this.method, executionRequestResource.method) &&
Objects.equals(this.statusText, executionRequestResource.statusText) &&
Objects.equals(this.time, executionRequestResource.time) &&
Objects.equals(this.size, executionRequestResource.size) &&
Objects.equals(this.uploadFile, executionRequestResource.uploadFile) &&
Objects.equals(this.startedAt, executionRequestResource.startedAt);
}
@Override
public int hashCode() {
return Objects.hash(id, executionTestResult, _object, status, abnormal, percentAbnormal, url, method, statusText, time, size, uploadFile, startedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExecutionRequestResource {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" executionTestResult: ").append(toIndentedString(executionTestResult)).append("\n");
sb.append(" _object: ").append(toIndentedString(_object)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" abnormal: ").append(toIndentedString(abnormal)).append("\n");
sb.append(" percentAbnormal: ").append(toIndentedString(percentAbnormal)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" method: ").append(toIndentedString(method)).append("\n");
sb.append(" statusText: ").append(toIndentedString(statusText)).append("\n");
sb.append(" time: ").append(toIndentedString(time)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" uploadFile: ").append(toIndentedString(uploadFile)).append("\n");
sb.append(" startedAt: ").append(toIndentedString(startedAt)).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 ");
}
}