com.katalon.testops.api.model.TestRunResult 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.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* TestRunResult
*/
@JsonPropertyOrder({
TestRunResult.JSON_PROPERTY_NAME,
TestRunResult.JSON_PROPERTY_STATUS,
TestRunResult.JSON_PROPERTY_SESSION_ID,
TestRunResult.JSON_PROPERTY_TEST_SUITE_ID,
TestRunResult.JSON_PROPERTY_END
})
@JsonTypeName("TestRunResult")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TestRunResult implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_STATUS = "status";
private String status;
public static final String JSON_PROPERTY_SESSION_ID = "sessionId";
private String sessionId;
public static final String JSON_PROPERTY_TEST_SUITE_ID = "testSuiteId";
private String testSuiteId;
public static final String JSON_PROPERTY_END = "end";
private Boolean end;
public TestRunResult 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 TestRunResult status(String 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 String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public TestRunResult sessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
/**
* Get sessionId
* @return sessionId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SESSION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
public TestRunResult testSuiteId(String testSuiteId) {
this.testSuiteId = testSuiteId;
return this;
}
/**
* Get testSuiteId
* @return testSuiteId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TEST_SUITE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTestSuiteId() {
return testSuiteId;
}
public void setTestSuiteId(String testSuiteId) {
this.testSuiteId = testSuiteId;
}
public TestRunResult end(Boolean end) {
this.end = end;
return this;
}
/**
* Get end
* @return end
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_END)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getEnd() {
return end;
}
public void setEnd(Boolean end) {
this.end = end;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TestRunResult testRunResult = (TestRunResult) o;
return Objects.equals(this.name, testRunResult.name) &&
Objects.equals(this.status, testRunResult.status) &&
Objects.equals(this.sessionId, testRunResult.sessionId) &&
Objects.equals(this.testSuiteId, testRunResult.testSuiteId) &&
Objects.equals(this.end, testRunResult.end);
}
@Override
public int hashCode() {
return Objects.hash(name, status, sessionId, testSuiteId, end);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TestRunResult {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n");
sb.append(" testSuiteId: ").append(toIndentedString(testSuiteId)).append("\n");
sb.append(" end: ").append(toIndentedString(end)).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 ");
}
}