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

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

Go to download

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 java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.validation.constraints.*;

/**
 * DeploymentStartRequest
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-11-23T14:03:51.855-07:00")
public class DeploymentStartRequest {
  @SerializedName("environmentName")
  private String environmentName = null;

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

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

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

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

  @SerializedName("environmentVariables")
  private Map environmentVariables = new HashMap();

  public DeploymentStartRequest environmentName(String environmentName) {
    this.environmentName = environmentName;
    return this;
  }

   /**
   * Get environmentName
   * @return environmentName
  **/
  @NotNull
  @Size(min=1)
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getEnvironmentName() {
    return environmentName;
  }

  public void setEnvironmentName(String environmentName) {
    this.environmentName = environmentName;
  }

  public DeploymentStartRequest 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 DeploymentStartRequest 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 DeploymentStartRequest buildVersion(String buildVersion) {
    this.buildVersion = buildVersion;
    return this;
  }

   /**
   * Build to deploy
   * @return buildVersion
  **/
  @NotNull
  @Size(min=1)
  @ApiModelProperty(example = "null", required = true, value = "Build to deploy")
  public String getBuildVersion() {
    return buildVersion;
  }

  public void setBuildVersion(String buildVersion) {
    this.buildVersion = buildVersion;
  }

  public DeploymentStartRequest buildJobId(String buildJobId) {
    this.buildJobId = buildJobId;
    return this;
  }

   /**
   * Optional job id with artifacts if build contains multiple jobs.
   * @return buildJobId
  **/
  @ApiModelProperty(example = "null", value = "Optional job id with artifacts if build contains multiple jobs.")
  public String getBuildJobId() {
    return buildJobId;
  }

  public void setBuildJobId(String buildJobId) {
    this.buildJobId = buildJobId;
  }

  public DeploymentStartRequest environmentVariables(Map environmentVariables) {
    this.environmentVariables = environmentVariables;
    return this;
  }

  public DeploymentStartRequest 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;
    }
    DeploymentStartRequest deploymentStartRequest = (DeploymentStartRequest) o;
    return Objects.equals(this.environmentName, deploymentStartRequest.environmentName) &&
        Objects.equals(this.accountName, deploymentStartRequest.accountName) &&
        Objects.equals(this.projectSlug, deploymentStartRequest.projectSlug) &&
        Objects.equals(this.buildVersion, deploymentStartRequest.buildVersion) &&
        Objects.equals(this.buildJobId, deploymentStartRequest.buildJobId) &&
        Objects.equals(this.environmentVariables, deploymentStartRequest.environmentVariables);
  }

  @Override
  public int hashCode() {
    return Objects.hash(environmentName, accountName, projectSlug, buildVersion, buildJobId, environmentVariables);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DeploymentStartRequest {\n");
    
    sb.append("    environmentName: ").append(toIndentedString(environmentName)).append("\n");
    sb.append("    accountName: ").append(toIndentedString(accountName)).append("\n");
    sb.append("    projectSlug: ").append(toIndentedString(projectSlug)).append("\n");
    sb.append("    buildVersion: ").append(toIndentedString(buildVersion)).append("\n");
    sb.append("    buildJobId: ").append(toIndentedString(buildJobId)).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