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

name.kevinlocke.appveyor.model.DeploymentEnvironmentWithSettings 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 java.util.ArrayList;
import java.util.List;
import name.kevinlocke.appveyor.model.DeploymentEnvironment;
import name.kevinlocke.appveyor.model.DeploymentEnvironmentProject;
import name.kevinlocke.appveyor.model.DeploymentEnvironmentSettings;
import name.kevinlocke.appveyor.model.DeploymentProviderType;
import name.kevinlocke.appveyor.model.SecurityDescriptor;
import org.joda.time.DateTime;
import javax.validation.constraints.*;

/**
 * DeploymentEnvironmentWithSettings
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-05-19T00:16:45.908-06:00")
public class DeploymentEnvironmentWithSettings {
  @SerializedName("deploymentEnvironmentId")
  private Integer deploymentEnvironmentId = null;

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

  @SerializedName("provider")
  private DeploymentProviderType provider = null;

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

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

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

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

  @SerializedName("securityDescriptor")
  private SecurityDescriptor securityDescriptor = null;

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

  @SerializedName("settings")
  private DeploymentEnvironmentSettings settings = null;

  @SerializedName("selectedProjects")
  private List selectedProjects = new ArrayList();

  @SerializedName("projects")
  private List projects = new ArrayList();

  public DeploymentEnvironmentWithSettings deploymentEnvironmentId(Integer deploymentEnvironmentId) {
    this.deploymentEnvironmentId = deploymentEnvironmentId;
    return this;
  }

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

  public void setDeploymentEnvironmentId(Integer deploymentEnvironmentId) {
    this.deploymentEnvironmentId = deploymentEnvironmentId;
  }

  public DeploymentEnvironmentWithSettings 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 DeploymentEnvironmentWithSettings provider(DeploymentProviderType provider) {
    this.provider = provider;
    return this;
  }

   /**
   * Get provider
   * @return provider
  **/
  @ApiModelProperty(example = "null", value = "")
  public DeploymentProviderType getProvider() {
    return provider;
  }

  public void setProvider(DeploymentProviderType provider) {
    this.provider = provider;
  }

   /**
   * 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 DeploymentEnvironmentWithSettings accountId(Integer accountId) {
    this.accountId = accountId;
    return this;
  }

   /**
   * Get accountId
   * @return accountId
  **/
  @ApiModelProperty(example = "null", value = "")
  public Integer getAccountId() {
    return accountId;
  }

  public void setAccountId(Integer accountId) {
    this.accountId = accountId;
  }

  public DeploymentEnvironmentWithSettings projectsMode(Integer projectsMode) {
    this.projectsMode = projectsMode;
    return this;
  }

   /**
   * 0 is \"Any project can be deployed to the environment\" 1 is \"Only selected projects can be deployed to the environment\" 2 is \"All except selected projects can be deployed to the environment\"
   * @return projectsMode
  **/
  @ApiModelProperty(example = "null", value = "0 is \"Any project can be deployed to the environment\" 1 is \"Only selected projects can be deployed to the environment\" 2 is \"All except selected projects can be deployed to the environment\"")
  public Integer getProjectsMode() {
    return projectsMode;
  }

  public void setProjectsMode(Integer projectsMode) {
    this.projectsMode = projectsMode;
  }

  public DeploymentEnvironmentWithSettings securityDescriptor(SecurityDescriptor securityDescriptor) {
    this.securityDescriptor = securityDescriptor;
    return this;
  }

   /**
   * Get securityDescriptor
   * @return securityDescriptor
  **/
  @ApiModelProperty(example = "null", value = "")
  public SecurityDescriptor getSecurityDescriptor() {
    return securityDescriptor;
  }

  public void setSecurityDescriptor(SecurityDescriptor securityDescriptor) {
    this.securityDescriptor = securityDescriptor;
  }

  public DeploymentEnvironmentWithSettings environmentAccessKey(String environmentAccessKey) {
    this.environmentAccessKey = environmentAccessKey;
    return this;
  }

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

  public void setEnvironmentAccessKey(String environmentAccessKey) {
    this.environmentAccessKey = environmentAccessKey;
  }

  public DeploymentEnvironmentWithSettings settings(DeploymentEnvironmentSettings settings) {
    this.settings = settings;
    return this;
  }

   /**
   * Get settings
   * @return settings
  **/
  @ApiModelProperty(example = "null", value = "")
  public DeploymentEnvironmentSettings getSettings() {
    return settings;
  }

  public void setSettings(DeploymentEnvironmentSettings settings) {
    this.settings = settings;
  }

  public DeploymentEnvironmentWithSettings selectedProjects(List selectedProjects) {
    this.selectedProjects = selectedProjects;
    return this;
  }

  public DeploymentEnvironmentWithSettings addSelectedProjectsItem(Integer selectedProjectsItem) {
    this.selectedProjects.add(selectedProjectsItem);
    return this;
  }

   /**
   * Project IDs of selected projects
   * @return selectedProjects
  **/
  @ApiModelProperty(example = "null", value = "Project IDs of selected projects")
  public List getSelectedProjects() {
    return selectedProjects;
  }

  public void setSelectedProjects(List selectedProjects) {
    this.selectedProjects = selectedProjects;
  }

  public DeploymentEnvironmentWithSettings projects(List projects) {
    this.projects = projects;
    return this;
  }

  public DeploymentEnvironmentWithSettings addProjectsItem(DeploymentEnvironmentProject projectsItem) {
    this.projects.add(projectsItem);
    return this;
  }

   /**
   * Projects available for selection in UI. Only present in response from getEnvironmentSettings. 
   * @return projects
  **/
  @ApiModelProperty(example = "null", value = "Projects available for selection in UI. Only present in response from getEnvironmentSettings. ")
  public List getProjects() {
    return projects;
  }

  public void setProjects(List projects) {
    this.projects = projects;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DeploymentEnvironmentWithSettings deploymentEnvironmentWithSettings = (DeploymentEnvironmentWithSettings) o;
    return Objects.equals(this.deploymentEnvironmentId, deploymentEnvironmentWithSettings.deploymentEnvironmentId) &&
        Objects.equals(this.name, deploymentEnvironmentWithSettings.name) &&
        Objects.equals(this.provider, deploymentEnvironmentWithSettings.provider) &&
        Objects.equals(this.created, deploymentEnvironmentWithSettings.created) &&
        Objects.equals(this.updated, deploymentEnvironmentWithSettings.updated) &&
        Objects.equals(this.accountId, deploymentEnvironmentWithSettings.accountId) &&
        Objects.equals(this.projectsMode, deploymentEnvironmentWithSettings.projectsMode) &&
        Objects.equals(this.securityDescriptor, deploymentEnvironmentWithSettings.securityDescriptor) &&
        Objects.equals(this.environmentAccessKey, deploymentEnvironmentWithSettings.environmentAccessKey) &&
        Objects.equals(this.settings, deploymentEnvironmentWithSettings.settings) &&
        Objects.equals(this.selectedProjects, deploymentEnvironmentWithSettings.selectedProjects) &&
        Objects.equals(this.projects, deploymentEnvironmentWithSettings.projects);
  }

  @Override
  public int hashCode() {
    return Objects.hash(deploymentEnvironmentId, name, provider, created, updated, accountId, projectsMode, securityDescriptor, environmentAccessKey, settings, selectedProjects, projects);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DeploymentEnvironmentWithSettings {\n");
    
    sb.append("    deploymentEnvironmentId: ").append(toIndentedString(deploymentEnvironmentId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    provider: ").append(toIndentedString(provider)).append("\n");
    sb.append("    created: ").append(toIndentedString(created)).append("\n");
    sb.append("    updated: ").append(toIndentedString(updated)).append("\n");
    sb.append("    accountId: ").append(toIndentedString(accountId)).append("\n");
    sb.append("    projectsMode: ").append(toIndentedString(projectsMode)).append("\n");
    sb.append("    securityDescriptor: ").append(toIndentedString(securityDescriptor)).append("\n");
    sb.append("    environmentAccessKey: ").append(toIndentedString(environmentAccessKey)).append("\n");
    sb.append("    settings: ").append(toIndentedString(settings)).append("\n");
    sb.append("    selectedProjects: ").append(toIndentedString(selectedProjects)).append("\n");
    sb.append("    projects: ").append(toIndentedString(projects)).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