All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.katalon.testops.model.ExecutionTestSuiteResource Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
/*
 * 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.ExecutionResource;
import com.katalon.testops.model.PlatformResource;
import com.katalon.testops.model.TestSuiteResource;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import org.threeten.bp.OffsetDateTime;
/**
 * ExecutionTestSuiteResource
 */


public class ExecutionTestSuiteResource {
  /**
   * Gets or Sets status
   */
  public enum StatusEnum {
    PASSED("PASSED"),
    FAILED("FAILED"),
    ERROR("ERROR"),
    INCOMPLETE("INCOMPLETE"),
    RUNNING("RUNNING"),
    SKIPPED("SKIPPED"),
    NOT_RUN("NOT_RUN");

    private String value;

    StatusEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static StatusEnum fromValue(String text) {
      for (StatusEnum b : StatusEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("status")
  private StatusEnum status = null;

  @JsonProperty("startTime")
  private OffsetDateTime startTime = null;

  @JsonProperty("endTime")
  private OffsetDateTime endTime = null;

  @JsonProperty("duration")
  private Long duration = null;

  @JsonProperty("elapsedDuration")
  private Long elapsedDuration = null;

  @JsonProperty("totalTests")
  private Long totalTests = null;

  @JsonProperty("totalPassedTests")
  private Long totalPassedTests = null;

  @JsonProperty("totalFailedTests")
  private Long totalFailedTests = null;

  @JsonProperty("totalErrorTests")
  private Long totalErrorTests = null;

  @JsonProperty("totalIncompleteTests")
  private Long totalIncompleteTests = null;

  @JsonProperty("totalDiffTests")
  private Long totalDiffTests = null;

  @JsonProperty("totalDiffPassedTests")
  private Long totalDiffPassedTests = null;

  @JsonProperty("totalDiffFailedTests")
  private Long totalDiffFailedTests = null;

  @JsonProperty("totalDiffErrorTests")
  private Long totalDiffErrorTests = null;

  @JsonProperty("totalDiffIncompleteTests")
  private Long totalDiffIncompleteTests = null;

  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("execution")
  private ExecutionResource execution = null;

  @JsonProperty("testSuite")
  private TestSuiteResource testSuite = null;

  @JsonProperty("platform")
  private PlatformResource platform = null;

  @JsonProperty("executionId")
  private Long executionId = null;

  @JsonProperty("profiles")
  private List profiles = null;

  @JsonProperty("hasComment")
  private Boolean hasComment = null;

  @JsonProperty("urlId")
  private String urlId = null;

  public ExecutionTestSuiteResource status(StatusEnum status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @Schema(description = "")
  public StatusEnum getStatus() {
    return status;
  }

  public void setStatus(StatusEnum status) {
    this.status = status;
  }

  public ExecutionTestSuiteResource startTime(OffsetDateTime startTime) {
    this.startTime = startTime;
    return this;
  }

   /**
   * Get startTime
   * @return startTime
  **/
  @Schema(description = "")
  public OffsetDateTime getStartTime() {
    return startTime;
  }

  public void setStartTime(OffsetDateTime startTime) {
    this.startTime = startTime;
  }

  public ExecutionTestSuiteResource endTime(OffsetDateTime endTime) {
    this.endTime = endTime;
    return this;
  }

   /**
   * Get endTime
   * @return endTime
  **/
  @Schema(description = "")
  public OffsetDateTime getEndTime() {
    return endTime;
  }

  public void setEndTime(OffsetDateTime endTime) {
    this.endTime = endTime;
  }

  public ExecutionTestSuiteResource duration(Long duration) {
    this.duration = duration;
    return this;
  }

   /**
   * Get duration
   * @return duration
  **/
  @Schema(description = "")
  public Long getDuration() {
    return duration;
  }

  public void setDuration(Long duration) {
    this.duration = duration;
  }

  public ExecutionTestSuiteResource elapsedDuration(Long elapsedDuration) {
    this.elapsedDuration = elapsedDuration;
    return this;
  }

   /**
   * Get elapsedDuration
   * @return elapsedDuration
  **/
  @Schema(description = "")
  public Long getElapsedDuration() {
    return elapsedDuration;
  }

  public void setElapsedDuration(Long elapsedDuration) {
    this.elapsedDuration = elapsedDuration;
  }

  public ExecutionTestSuiteResource totalTests(Long totalTests) {
    this.totalTests = totalTests;
    return this;
  }

   /**
   * Get totalTests
   * @return totalTests
  **/
  @Schema(description = "")
  public Long getTotalTests() {
    return totalTests;
  }

  public void setTotalTests(Long totalTests) {
    this.totalTests = totalTests;
  }

  public ExecutionTestSuiteResource totalPassedTests(Long totalPassedTests) {
    this.totalPassedTests = totalPassedTests;
    return this;
  }

   /**
   * Get totalPassedTests
   * @return totalPassedTests
  **/
  @Schema(description = "")
  public Long getTotalPassedTests() {
    return totalPassedTests;
  }

  public void setTotalPassedTests(Long totalPassedTests) {
    this.totalPassedTests = totalPassedTests;
  }

  public ExecutionTestSuiteResource totalFailedTests(Long totalFailedTests) {
    this.totalFailedTests = totalFailedTests;
    return this;
  }

   /**
   * Get totalFailedTests
   * @return totalFailedTests
  **/
  @Schema(description = "")
  public Long getTotalFailedTests() {
    return totalFailedTests;
  }

  public void setTotalFailedTests(Long totalFailedTests) {
    this.totalFailedTests = totalFailedTests;
  }

  public ExecutionTestSuiteResource totalErrorTests(Long totalErrorTests) {
    this.totalErrorTests = totalErrorTests;
    return this;
  }

   /**
   * Get totalErrorTests
   * @return totalErrorTests
  **/
  @Schema(description = "")
  public Long getTotalErrorTests() {
    return totalErrorTests;
  }

  public void setTotalErrorTests(Long totalErrorTests) {
    this.totalErrorTests = totalErrorTests;
  }

  public ExecutionTestSuiteResource totalIncompleteTests(Long totalIncompleteTests) {
    this.totalIncompleteTests = totalIncompleteTests;
    return this;
  }

   /**
   * Get totalIncompleteTests
   * @return totalIncompleteTests
  **/
  @Schema(description = "")
  public Long getTotalIncompleteTests() {
    return totalIncompleteTests;
  }

  public void setTotalIncompleteTests(Long totalIncompleteTests) {
    this.totalIncompleteTests = totalIncompleteTests;
  }

  public ExecutionTestSuiteResource totalDiffTests(Long totalDiffTests) {
    this.totalDiffTests = totalDiffTests;
    return this;
  }

   /**
   * Get totalDiffTests
   * @return totalDiffTests
  **/
  @Schema(description = "")
  public Long getTotalDiffTests() {
    return totalDiffTests;
  }

  public void setTotalDiffTests(Long totalDiffTests) {
    this.totalDiffTests = totalDiffTests;
  }

  public ExecutionTestSuiteResource totalDiffPassedTests(Long totalDiffPassedTests) {
    this.totalDiffPassedTests = totalDiffPassedTests;
    return this;
  }

   /**
   * Get totalDiffPassedTests
   * @return totalDiffPassedTests
  **/
  @Schema(description = "")
  public Long getTotalDiffPassedTests() {
    return totalDiffPassedTests;
  }

  public void setTotalDiffPassedTests(Long totalDiffPassedTests) {
    this.totalDiffPassedTests = totalDiffPassedTests;
  }

  public ExecutionTestSuiteResource totalDiffFailedTests(Long totalDiffFailedTests) {
    this.totalDiffFailedTests = totalDiffFailedTests;
    return this;
  }

   /**
   * Get totalDiffFailedTests
   * @return totalDiffFailedTests
  **/
  @Schema(description = "")
  public Long getTotalDiffFailedTests() {
    return totalDiffFailedTests;
  }

  public void setTotalDiffFailedTests(Long totalDiffFailedTests) {
    this.totalDiffFailedTests = totalDiffFailedTests;
  }

  public ExecutionTestSuiteResource totalDiffErrorTests(Long totalDiffErrorTests) {
    this.totalDiffErrorTests = totalDiffErrorTests;
    return this;
  }

   /**
   * Get totalDiffErrorTests
   * @return totalDiffErrorTests
  **/
  @Schema(description = "")
  public Long getTotalDiffErrorTests() {
    return totalDiffErrorTests;
  }

  public void setTotalDiffErrorTests(Long totalDiffErrorTests) {
    this.totalDiffErrorTests = totalDiffErrorTests;
  }

  public ExecutionTestSuiteResource totalDiffIncompleteTests(Long totalDiffIncompleteTests) {
    this.totalDiffIncompleteTests = totalDiffIncompleteTests;
    return this;
  }

   /**
   * Get totalDiffIncompleteTests
   * @return totalDiffIncompleteTests
  **/
  @Schema(description = "")
  public Long getTotalDiffIncompleteTests() {
    return totalDiffIncompleteTests;
  }

  public void setTotalDiffIncompleteTests(Long totalDiffIncompleteTests) {
    this.totalDiffIncompleteTests = totalDiffIncompleteTests;
  }

  public ExecutionTestSuiteResource 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 ExecutionTestSuiteResource execution(ExecutionResource execution) {
    this.execution = execution;
    return this;
  }

   /**
   * Get execution
   * @return execution
  **/
  @Schema(description = "")
  public ExecutionResource getExecution() {
    return execution;
  }

  public void setExecution(ExecutionResource execution) {
    this.execution = execution;
  }

  public ExecutionTestSuiteResource testSuite(TestSuiteResource testSuite) {
    this.testSuite = testSuite;
    return this;
  }

   /**
   * Get testSuite
   * @return testSuite
  **/
  @Schema(description = "")
  public TestSuiteResource getTestSuite() {
    return testSuite;
  }

  public void setTestSuite(TestSuiteResource testSuite) {
    this.testSuite = testSuite;
  }

  public ExecutionTestSuiteResource platform(PlatformResource platform) {
    this.platform = platform;
    return this;
  }

   /**
   * Get platform
   * @return platform
  **/
  @Schema(description = "")
  public PlatformResource getPlatform() {
    return platform;
  }

  public void setPlatform(PlatformResource platform) {
    this.platform = platform;
  }

  public ExecutionTestSuiteResource executionId(Long executionId) {
    this.executionId = executionId;
    return this;
  }

   /**
   * Get executionId
   * @return executionId
  **/
  @Schema(description = "")
  public Long getExecutionId() {
    return executionId;
  }

  public void setExecutionId(Long executionId) {
    this.executionId = executionId;
  }

  public ExecutionTestSuiteResource profiles(List profiles) {
    this.profiles = profiles;
    return this;
  }

  public ExecutionTestSuiteResource addProfilesItem(String profilesItem) {
    if (this.profiles == null) {
      this.profiles = new ArrayList();
    }
    this.profiles.add(profilesItem);
    return this;
  }

   /**
   * Get profiles
   * @return profiles
  **/
  @Schema(description = "")
  public List getProfiles() {
    return profiles;
  }

  public void setProfiles(List profiles) {
    this.profiles = profiles;
  }

  public ExecutionTestSuiteResource hasComment(Boolean hasComment) {
    this.hasComment = hasComment;
    return this;
  }

   /**
   * Get hasComment
   * @return hasComment
  **/
  @Schema(description = "")
  public Boolean isHasComment() {
    return hasComment;
  }

  public void setHasComment(Boolean hasComment) {
    this.hasComment = hasComment;
  }

  public ExecutionTestSuiteResource urlId(String urlId) {
    this.urlId = urlId;
    return this;
  }

   /**
   * Get urlId
   * @return urlId
  **/
  @Schema(description = "")
  public String getUrlId() {
    return urlId;
  }

  public void setUrlId(String urlId) {
    this.urlId = urlId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ExecutionTestSuiteResource executionTestSuiteResource = (ExecutionTestSuiteResource) o;
    return Objects.equals(this.status, executionTestSuiteResource.status) &&
        Objects.equals(this.startTime, executionTestSuiteResource.startTime) &&
        Objects.equals(this.endTime, executionTestSuiteResource.endTime) &&
        Objects.equals(this.duration, executionTestSuiteResource.duration) &&
        Objects.equals(this.elapsedDuration, executionTestSuiteResource.elapsedDuration) &&
        Objects.equals(this.totalTests, executionTestSuiteResource.totalTests) &&
        Objects.equals(this.totalPassedTests, executionTestSuiteResource.totalPassedTests) &&
        Objects.equals(this.totalFailedTests, executionTestSuiteResource.totalFailedTests) &&
        Objects.equals(this.totalErrorTests, executionTestSuiteResource.totalErrorTests) &&
        Objects.equals(this.totalIncompleteTests, executionTestSuiteResource.totalIncompleteTests) &&
        Objects.equals(this.totalDiffTests, executionTestSuiteResource.totalDiffTests) &&
        Objects.equals(this.totalDiffPassedTests, executionTestSuiteResource.totalDiffPassedTests) &&
        Objects.equals(this.totalDiffFailedTests, executionTestSuiteResource.totalDiffFailedTests) &&
        Objects.equals(this.totalDiffErrorTests, executionTestSuiteResource.totalDiffErrorTests) &&
        Objects.equals(this.totalDiffIncompleteTests, executionTestSuiteResource.totalDiffIncompleteTests) &&
        Objects.equals(this.id, executionTestSuiteResource.id) &&
        Objects.equals(this.execution, executionTestSuiteResource.execution) &&
        Objects.equals(this.testSuite, executionTestSuiteResource.testSuite) &&
        Objects.equals(this.platform, executionTestSuiteResource.platform) &&
        Objects.equals(this.executionId, executionTestSuiteResource.executionId) &&
        Objects.equals(this.profiles, executionTestSuiteResource.profiles) &&
        Objects.equals(this.hasComment, executionTestSuiteResource.hasComment) &&
        Objects.equals(this.urlId, executionTestSuiteResource.urlId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(status, startTime, endTime, duration, elapsedDuration, totalTests, totalPassedTests, totalFailedTests, totalErrorTests, totalIncompleteTests, totalDiffTests, totalDiffPassedTests, totalDiffFailedTests, totalDiffErrorTests, totalDiffIncompleteTests, id, execution, testSuite, platform, executionId, profiles, hasComment, urlId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ExecutionTestSuiteResource {\n");
    
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).append("\n");
    sb.append("    endTime: ").append(toIndentedString(endTime)).append("\n");
    sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
    sb.append("    elapsedDuration: ").append(toIndentedString(elapsedDuration)).append("\n");
    sb.append("    totalTests: ").append(toIndentedString(totalTests)).append("\n");
    sb.append("    totalPassedTests: ").append(toIndentedString(totalPassedTests)).append("\n");
    sb.append("    totalFailedTests: ").append(toIndentedString(totalFailedTests)).append("\n");
    sb.append("    totalErrorTests: ").append(toIndentedString(totalErrorTests)).append("\n");
    sb.append("    totalIncompleteTests: ").append(toIndentedString(totalIncompleteTests)).append("\n");
    sb.append("    totalDiffTests: ").append(toIndentedString(totalDiffTests)).append("\n");
    sb.append("    totalDiffPassedTests: ").append(toIndentedString(totalDiffPassedTests)).append("\n");
    sb.append("    totalDiffFailedTests: ").append(toIndentedString(totalDiffFailedTests)).append("\n");
    sb.append("    totalDiffErrorTests: ").append(toIndentedString(totalDiffErrorTests)).append("\n");
    sb.append("    totalDiffIncompleteTests: ").append(toIndentedString(totalDiffIncompleteTests)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    execution: ").append(toIndentedString(execution)).append("\n");
    sb.append("    testSuite: ").append(toIndentedString(testSuite)).append("\n");
    sb.append("    platform: ").append(toIndentedString(platform)).append("\n");
    sb.append("    executionId: ").append(toIndentedString(executionId)).append("\n");
    sb.append("    profiles: ").append(toIndentedString(profiles)).append("\n");
    sb.append("    hasComment: ").append(toIndentedString(hasComment)).append("\n");
    sb.append("    urlId: ").append(toIndentedString(urlId)).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    ");
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy