name.kevinlocke.appveyor.model.BuildStartRequest 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.
/*
* 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 java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.validation.constraints.*;
/**
* BuildStartRequest
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-23T09:34:32.026-06:00")
public class BuildStartRequest {
@SerializedName("accountName")
private String accountName = null;
@SerializedName("projectSlug")
private String projectSlug = null;
@SerializedName("branch")
private String branch = null;
@SerializedName("commitId")
private String commitId = null;
@SerializedName("pullRequestId")
private Integer pullRequestId = null;
@SerializedName("environmentVariables")
private Map environmentVariables = new HashMap();
public BuildStartRequest accountName(String accountName) {
this.accountName = accountName;
return this;
}
/**
* Get accountName
* @return accountName
**/
@NotNull
@Size(min=1)
@ApiModelProperty(example = "null", required = true, value = "")
public String getAccountName() {
return accountName;
}
public void setAccountName(String accountName) {
this.accountName = accountName;
}
public BuildStartRequest projectSlug(String projectSlug) {
this.projectSlug = projectSlug;
return this;
}
/**
* Get projectSlug
* @return projectSlug
**/
@NotNull
@Size(min=1)
@ApiModelProperty(example = "null", required = true, value = "")
public String getProjectSlug() {
return projectSlug;
}
public void setProjectSlug(String projectSlug) {
this.projectSlug = projectSlug;
}
public BuildStartRequest branch(String branch) {
this.branch = branch;
return this;
}
/**
* Get branch
* @return branch
**/
@ApiModelProperty(example = "null", value = "")
public String getBranch() {
return branch;
}
public void setBranch(String branch) {
this.branch = branch;
}
public BuildStartRequest commitId(String commitId) {
this.commitId = commitId;
return this;
}
/**
* Get commitId
* @return commitId
**/
@ApiModelProperty(example = "null", value = "")
public String getCommitId() {
return commitId;
}
public void setCommitId(String commitId) {
this.commitId = commitId;
}
public BuildStartRequest pullRequestId(Integer pullRequestId) {
this.pullRequestId = pullRequestId;
return this;
}
/**
* Can not be used with `branch` or `commitId`
* minimum: 1
* @return pullRequestId
**/
@Min(1)
@ApiModelProperty(example = "null", value = "Can not be used with `branch` or `commitId`")
public Integer getPullRequestId() {
return pullRequestId;
}
public void setPullRequestId(Integer pullRequestId) {
this.pullRequestId = pullRequestId;
}
public BuildStartRequest environmentVariables(Map environmentVariables) {
this.environmentVariables = environmentVariables;
return this;
}
public BuildStartRequest putEnvironmentVariablesItem(String key, String environmentVariablesItem) {
this.environmentVariables.put(key, environmentVariablesItem);
return this;
}
/**
* Get environmentVariables
* @return environmentVariables
**/
@ApiModelProperty(example = "null", value = "")
public Map getEnvironmentVariables() {
return environmentVariables;
}
public void setEnvironmentVariables(Map environmentVariables) {
this.environmentVariables = environmentVariables;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BuildStartRequest buildStartRequest = (BuildStartRequest) o;
return Objects.equals(this.accountName, buildStartRequest.accountName) &&
Objects.equals(this.projectSlug, buildStartRequest.projectSlug) &&
Objects.equals(this.branch, buildStartRequest.branch) &&
Objects.equals(this.commitId, buildStartRequest.commitId) &&
Objects.equals(this.pullRequestId, buildStartRequest.pullRequestId) &&
Objects.equals(this.environmentVariables, buildStartRequest.environmentVariables);
}
@Override
public int hashCode() {
return Objects.hash(accountName, projectSlug, branch, commitId, pullRequestId, environmentVariables);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BuildStartRequest {\n");
sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n");
sb.append(" projectSlug: ").append(toIndentedString(projectSlug)).append("\n");
sb.append(" branch: ").append(toIndentedString(branch)).append("\n");
sb.append(" commitId: ").append(toIndentedString(commitId)).append("\n");
sb.append(" pullRequestId: ").append(toIndentedString(pullRequestId)).append("\n");
sb.append(" environmentVariables: ").append(toIndentedString(environmentVariables)).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