com.katalon.testops.model.TestRunResult 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 io.swagger.v3.oas.annotations.media.Schema;
/**
* TestRunResult
*/
public class TestRunResult {
@JsonProperty("name")
private String name = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("sessionId")
private String sessionId = null;
@JsonProperty("testSuiteId")
private String testSuiteId = null;
@JsonProperty("end")
private Boolean end = null;
public TestRunResult 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 TestRunResult status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@Schema(description = "")
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
**/
@Schema(description = "")
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
**/
@Schema(description = "")
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
**/
@Schema(description = "")
public Boolean isEnd() {
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 ");
}
}