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

name.kevinlocke.appveyor.model.BuildJob Maven / Gradle / Ivy

Go to download

AppVeyor REST API Client generated from the unofficial Swagger API definition in Java.

There is a newer version: 0.2.10
Show newest version
/*
 * AppVeyor REST API
 * AppVeyor is a hosted continuous integration service which runs on Microsoft Windows.  The AppVeyor REST API provides a RESTful way to interact with the AppVeyor service.  This includes managing projects, builds, deployments, and the teams that build them.  Additional help and discussion of the AppVeyor REST API is available at http://help.appveyor.com/discussions  This Swagger definition is an **unofficial** description of the AppVeyor REST API maintained at https://github.com/kevinoid/appveyor-swagger Please report any issues or suggestions for this Swagger definition at https://github.com/kevinoid/appveyor-swagger/issues/new  #### API Conventions  Fields which are missing from update operations (`PUT` requests) are typically reset to their default values.  So although most fields are not technically required, they should usually be specified in practice. 
 *
 * OpenAPI spec version: 0.20170106.0
 * Contact: [email protected]
 *
 * 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 name.kevinlocke.appveyor.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import name.kevinlocke.appveyor.model.Job;
import name.kevinlocke.appveyor.model.OSType;
import name.kevinlocke.appveyor.model.Status;
import org.joda.time.DateTime;
import javax.validation.constraints.*;

/**
 * BuildJob
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-23T09:34:32.026-06:00")
public class BuildJob {
  @SerializedName("created")
  private DateTime created = null;

  @SerializedName("updated")
  private DateTime updated = null;

  @SerializedName("jobId")
  private String jobId = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("status")
  private Status status = null;

  @SerializedName("started")
  private DateTime started = null;

  @SerializedName("finished")
  private DateTime finished = null;

  @SerializedName("osType")
  private OSType osType = null;

  @SerializedName("allowFailure")
  private Boolean allowFailure = null;

  @SerializedName("messagesCount")
  private Integer messagesCount = null;

  @SerializedName("compilationMessagesCount")
  private Integer compilationMessagesCount = null;

  @SerializedName("compilationErrorsCount")
  private Integer compilationErrorsCount = null;

  @SerializedName("compilationWarningsCount")
  private Integer compilationWarningsCount = null;

  @SerializedName("testsCount")
  private Integer testsCount = null;

  @SerializedName("passedTestsCount")
  private Integer passedTestsCount = null;

  @SerializedName("failedTestsCount")
  private Integer failedTestsCount = null;

  @SerializedName("artifactsCount")
  private Integer artifactsCount = null;

   /**
   * Get created
   * @return created
  **/
  @ApiModelProperty(example = "null", value = "")
  public DateTime getCreated() {
    return created;
  }

   /**
   * Get updated
   * @return updated
  **/
  @ApiModelProperty(example = "null", value = "")
  public DateTime getUpdated() {
    return updated;
  }

  public BuildJob jobId(String jobId) {
    this.jobId = jobId;
    return this;
  }

   /**
   * Get jobId
   * @return jobId
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getJobId() {
    return jobId;
  }

  public void setJobId(String jobId) {
    this.jobId = jobId;
  }

  public BuildJob name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public BuildJob status(Status status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @ApiModelProperty(example = "null", value = "")
  public Status getStatus() {
    return status;
  }

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

  public BuildJob started(DateTime started) {
    this.started = started;
    return this;
  }

   /**
   * Get started
   * @return started
  **/
  @ApiModelProperty(example = "null", value = "")
  public DateTime getStarted() {
    return started;
  }

  public void setStarted(DateTime started) {
    this.started = started;
  }

  public BuildJob finished(DateTime finished) {
    this.finished = finished;
    return this;
  }

   /**
   * Get finished
   * @return finished
  **/
  @ApiModelProperty(example = "null", value = "")
  public DateTime getFinished() {
    return finished;
  }

  public void setFinished(DateTime finished) {
    this.finished = finished;
  }

  public BuildJob osType(OSType osType) {
    this.osType = osType;
    return this;
  }

   /**
   * Get osType
   * @return osType
  **/
  @ApiModelProperty(example = "null", value = "")
  public OSType getOsType() {
    return osType;
  }

  public void setOsType(OSType osType) {
    this.osType = osType;
  }

  public BuildJob allowFailure(Boolean allowFailure) {
    this.allowFailure = allowFailure;
    return this;
  }

   /**
   * Get allowFailure
   * @return allowFailure
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getAllowFailure() {
    return allowFailure;
  }

  public void setAllowFailure(Boolean allowFailure) {
    this.allowFailure = allowFailure;
  }

  public BuildJob messagesCount(Integer messagesCount) {
    this.messagesCount = messagesCount;
    return this;
  }

   /**
   * Get messagesCount
   * minimum: 0
   * @return messagesCount
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getMessagesCount() {
    return messagesCount;
  }

  public void setMessagesCount(Integer messagesCount) {
    this.messagesCount = messagesCount;
  }

  public BuildJob compilationMessagesCount(Integer compilationMessagesCount) {
    this.compilationMessagesCount = compilationMessagesCount;
    return this;
  }

   /**
   * Get compilationMessagesCount
   * minimum: 0
   * @return compilationMessagesCount
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getCompilationMessagesCount() {
    return compilationMessagesCount;
  }

  public void setCompilationMessagesCount(Integer compilationMessagesCount) {
    this.compilationMessagesCount = compilationMessagesCount;
  }

  public BuildJob compilationErrorsCount(Integer compilationErrorsCount) {
    this.compilationErrorsCount = compilationErrorsCount;
    return this;
  }

   /**
   * Get compilationErrorsCount
   * minimum: 0
   * @return compilationErrorsCount
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getCompilationErrorsCount() {
    return compilationErrorsCount;
  }

  public void setCompilationErrorsCount(Integer compilationErrorsCount) {
    this.compilationErrorsCount = compilationErrorsCount;
  }

  public BuildJob compilationWarningsCount(Integer compilationWarningsCount) {
    this.compilationWarningsCount = compilationWarningsCount;
    return this;
  }

   /**
   * Get compilationWarningsCount
   * minimum: 0
   * @return compilationWarningsCount
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getCompilationWarningsCount() {
    return compilationWarningsCount;
  }

  public void setCompilationWarningsCount(Integer compilationWarningsCount) {
    this.compilationWarningsCount = compilationWarningsCount;
  }

  public BuildJob testsCount(Integer testsCount) {
    this.testsCount = testsCount;
    return this;
  }

   /**
   * Get testsCount
   * minimum: 0
   * @return testsCount
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getTestsCount() {
    return testsCount;
  }

  public void setTestsCount(Integer testsCount) {
    this.testsCount = testsCount;
  }

  public BuildJob passedTestsCount(Integer passedTestsCount) {
    this.passedTestsCount = passedTestsCount;
    return this;
  }

   /**
   * Get passedTestsCount
   * minimum: 0
   * @return passedTestsCount
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getPassedTestsCount() {
    return passedTestsCount;
  }

  public void setPassedTestsCount(Integer passedTestsCount) {
    this.passedTestsCount = passedTestsCount;
  }

  public BuildJob failedTestsCount(Integer failedTestsCount) {
    this.failedTestsCount = failedTestsCount;
    return this;
  }

   /**
   * Get failedTestsCount
   * minimum: 0
   * @return failedTestsCount
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getFailedTestsCount() {
    return failedTestsCount;
  }

  public void setFailedTestsCount(Integer failedTestsCount) {
    this.failedTestsCount = failedTestsCount;
  }

  public BuildJob artifactsCount(Integer artifactsCount) {
    this.artifactsCount = artifactsCount;
    return this;
  }

   /**
   * Get artifactsCount
   * minimum: 0
   * @return artifactsCount
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getArtifactsCount() {
    return artifactsCount;
  }

  public void setArtifactsCount(Integer artifactsCount) {
    this.artifactsCount = artifactsCount;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BuildJob buildJob = (BuildJob) o;
    return Objects.equals(this.created, buildJob.created) &&
        Objects.equals(this.updated, buildJob.updated) &&
        Objects.equals(this.jobId, buildJob.jobId) &&
        Objects.equals(this.name, buildJob.name) &&
        Objects.equals(this.status, buildJob.status) &&
        Objects.equals(this.started, buildJob.started) &&
        Objects.equals(this.finished, buildJob.finished) &&
        Objects.equals(this.osType, buildJob.osType) &&
        Objects.equals(this.allowFailure, buildJob.allowFailure) &&
        Objects.equals(this.messagesCount, buildJob.messagesCount) &&
        Objects.equals(this.compilationMessagesCount, buildJob.compilationMessagesCount) &&
        Objects.equals(this.compilationErrorsCount, buildJob.compilationErrorsCount) &&
        Objects.equals(this.compilationWarningsCount, buildJob.compilationWarningsCount) &&
        Objects.equals(this.testsCount, buildJob.testsCount) &&
        Objects.equals(this.passedTestsCount, buildJob.passedTestsCount) &&
        Objects.equals(this.failedTestsCount, buildJob.failedTestsCount) &&
        Objects.equals(this.artifactsCount, buildJob.artifactsCount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(created, updated, jobId, name, status, started, finished, osType, allowFailure, messagesCount, compilationMessagesCount, compilationErrorsCount, compilationWarningsCount, testsCount, passedTestsCount, failedTestsCount, artifactsCount);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BuildJob {\n");
    
    sb.append("    created: ").append(toIndentedString(created)).append("\n");
    sb.append("    updated: ").append(toIndentedString(updated)).append("\n");
    sb.append("    jobId: ").append(toIndentedString(jobId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    started: ").append(toIndentedString(started)).append("\n");
    sb.append("    finished: ").append(toIndentedString(finished)).append("\n");
    sb.append("    osType: ").append(toIndentedString(osType)).append("\n");
    sb.append("    allowFailure: ").append(toIndentedString(allowFailure)).append("\n");
    sb.append("    messagesCount: ").append(toIndentedString(messagesCount)).append("\n");
    sb.append("    compilationMessagesCount: ").append(toIndentedString(compilationMessagesCount)).append("\n");
    sb.append("    compilationErrorsCount: ").append(toIndentedString(compilationErrorsCount)).append("\n");
    sb.append("    compilationWarningsCount: ").append(toIndentedString(compilationWarningsCount)).append("\n");
    sb.append("    testsCount: ").append(toIndentedString(testsCount)).append("\n");
    sb.append("    passedTestsCount: ").append(toIndentedString(passedTestsCount)).append("\n");
    sb.append("    failedTestsCount: ").append(toIndentedString(failedTestsCount)).append("\n");
    sb.append("    artifactsCount: ").append(toIndentedString(artifactsCount)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy