name.kevinlocke.appveyor.model.DeploymentJob Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appveyor-swagger Show documentation
Show all versions of appveyor-swagger Show documentation
AppVeyor REST API Client generated from the unofficial Swagger API
definition in Java.
The 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.Status;
import org.joda.time.DateTime;
import javax.validation.constraints.*;
/**
* DeploymentJob
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-11-23T14:03:51.855-07:00")
public class DeploymentJob {
@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("messagesCount")
private Integer messagesCount = 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 DeploymentJob 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 DeploymentJob 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 DeploymentJob 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 DeploymentJob 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 DeploymentJob 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 DeploymentJob 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeploymentJob deploymentJob = (DeploymentJob) o;
return Objects.equals(this.created, deploymentJob.created) &&
Objects.equals(this.updated, deploymentJob.updated) &&
Objects.equals(this.jobId, deploymentJob.jobId) &&
Objects.equals(this.name, deploymentJob.name) &&
Objects.equals(this.status, deploymentJob.status) &&
Objects.equals(this.started, deploymentJob.started) &&
Objects.equals(this.finished, deploymentJob.finished) &&
Objects.equals(this.messagesCount, deploymentJob.messagesCount);
}
@Override
public int hashCode() {
return Objects.hash(created, updated, jobId, name, status, started, finished, messagesCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeploymentJob {\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(" messagesCount: ").append(toIndentedString(messagesCount)).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