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

name.kevinlocke.appveyor.model.DeploymentEnvironment 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 name.kevinlocke.appveyor.model.DeploymentEnvironmentLookupModel;
import name.kevinlocke.appveyor.model.DeploymentProviderType;
import name.kevinlocke.appveyor.model.SecurityDescriptor;
import name.kevinlocke.appveyor.model.Timestamped;
import org.joda.time.DateTime;
import javax.validation.constraints.*;

/**
 * DeploymentEnvironment
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-11-23T14:03:51.855-07:00")
public class DeploymentEnvironment {
  @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("tags")
  private String tags = null;

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

   /**
   * Comma-separated list of environment tags for dynamic grouping. Appears that any input is accepted.  The returned value only contains case-preserving but insensitive unique values where spaces around \",\" are removed but otherwise preserved.  Empty values and items are allowed.
   * @return tags
  **/
  @ApiModelProperty(example = "null", value = "Comma-separated list of environment tags for dynamic grouping. Appears that any input is accepted.  The returned value only contains case-preserving but insensitive unique values where spaces around \",\" are removed but otherwise preserved.  Empty values and items are allowed.")
  public String getTags() {
    return tags;
  }

  public void setTags(String tags) {
    this.tags = tags;
  }


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

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


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DeploymentEnvironment {\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("    tags: ").append(toIndentedString(tags)).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