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

name.kevinlocke.appveyor.model.Project 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.ArrayList;
import java.util.List;
import name.kevinlocke.appveyor.model.Build;
import name.kevinlocke.appveyor.model.NuGetFeed;
import name.kevinlocke.appveyor.model.ProjectLookupModel;
import name.kevinlocke.appveyor.model.RepositoryProvider;
import name.kevinlocke.appveyor.model.RepositoryScm;
import name.kevinlocke.appveyor.model.SecurityDescriptor;
import name.kevinlocke.appveyor.model.Timestamped;
import org.joda.time.DateTime;
import javax.validation.constraints.*;

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

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

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

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

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

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

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

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

  @SerializedName("repositoryType")
  private RepositoryProvider repositoryType = null;

  @SerializedName("repositoryScm")
  private RepositoryScm repositoryScm = null;

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

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

  @SerializedName("isPrivate")
  private Boolean isPrivate = null;

  @SerializedName("skipBranchesWithoutAppveyorYml")
  private Boolean skipBranchesWithoutAppveyorYml = null;

  @SerializedName("enableSecureVariablesInPullRequests")
  private Boolean enableSecureVariablesInPullRequests = null;

  @SerializedName("enableSecureVariablesInPullRequestsFromSameRepo")
  private Boolean enableSecureVariablesInPullRequestsFromSameRepo = null;

  @SerializedName("enableDeploymentInPullRequests")
  private Boolean enableDeploymentInPullRequests = null;

  @SerializedName("saveBuildCacheInPullRequests")
  private Boolean saveBuildCacheInPullRequests = null;

  @SerializedName("rollingBuilds")
  private Boolean rollingBuilds = null;

  @SerializedName("rollingBuildsDoNotCancelRunningBuilds")
  private Boolean rollingBuildsDoNotCancelRunningBuilds = null;

  @SerializedName("alwaysBuildClosedPullRequests")
  private Boolean alwaysBuildClosedPullRequests = null;

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

  @SerializedName("nuGetFeed")
  private NuGetFeed nuGetFeed = null;

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

  public Project projectId(Integer projectId) {
    this.projectId = projectId;
    return this;
  }

   /**
   * Get projectId
   * minimum: 0
   * @return projectId
  **/
  @NotNull
  @Min(0)
  @ApiModelProperty(example = "null", required = true, value = "")
  public Integer getProjectId() {
    return projectId;
  }

  public void setProjectId(Integer projectId) {
    this.projectId = projectId;
  }

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

  public Project 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;
  }

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

   /**
   * 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;
  }

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

  public Project builds(List builds) {
    this.builds = builds;
    return this;
  }

  public Project addBuildsItem(Build buildsItem) {
    this.builds.add(buildsItem);
    return this;
  }

   /**
   * Only non-empty for response from getProjects.
   * @return builds
  **/
  @ApiModelProperty(example = "null", value = "Only non-empty for response from getProjects.")
  public List getBuilds() {
    return builds;
  }

  public void setBuilds(List builds) {
    this.builds = builds;
  }

  public Project repositoryType(RepositoryProvider repositoryType) {
    this.repositoryType = repositoryType;
    return this;
  }

   /**
   * Get repositoryType
   * @return repositoryType
  **/
  @ApiModelProperty(example = "null", value = "")
  public RepositoryProvider getRepositoryType() {
    return repositoryType;
  }

  public void setRepositoryType(RepositoryProvider repositoryType) {
    this.repositoryType = repositoryType;
  }

  public Project repositoryScm(RepositoryScm repositoryScm) {
    this.repositoryScm = repositoryScm;
    return this;
  }

   /**
   * Get repositoryScm
   * @return repositoryScm
  **/
  @ApiModelProperty(example = "null", value = "")
  public RepositoryScm getRepositoryScm() {
    return repositoryScm;
  }

  public void setRepositoryScm(RepositoryScm repositoryScm) {
    this.repositoryScm = repositoryScm;
  }

  public Project repositoryName(String repositoryName) {
    this.repositoryName = repositoryName;
    return this;
  }

   /**
   * Get repositoryName
   * @return repositoryName
  **/
  @NotNull
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getRepositoryName() {
    return repositoryName;
  }

  public void setRepositoryName(String repositoryName) {
    this.repositoryName = repositoryName;
  }

  public Project repositoryBranch(String repositoryBranch) {
    this.repositoryBranch = repositoryBranch;
    return this;
  }

   /**
   * Not present in response from addProject.
   * @return repositoryBranch
  **/
  @ApiModelProperty(example = "null", value = "Not present in response from addProject.")
  public String getRepositoryBranch() {
    return repositoryBranch;
  }

  public void setRepositoryBranch(String repositoryBranch) {
    this.repositoryBranch = repositoryBranch;
  }

  public Project isPrivate(Boolean isPrivate) {
    this.isPrivate = isPrivate;
    return this;
  }

   /**
   * Get isPrivate
   * @return isPrivate
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getIsPrivate() {
    return isPrivate;
  }

  public void setIsPrivate(Boolean isPrivate) {
    this.isPrivate = isPrivate;
  }

  public Project skipBranchesWithoutAppveyorYml(Boolean skipBranchesWithoutAppveyorYml) {
    this.skipBranchesWithoutAppveyorYml = skipBranchesWithoutAppveyorYml;
    return this;
  }

   /**
   * Get skipBranchesWithoutAppveyorYml
   * @return skipBranchesWithoutAppveyorYml
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getSkipBranchesWithoutAppveyorYml() {
    return skipBranchesWithoutAppveyorYml;
  }

  public void setSkipBranchesWithoutAppveyorYml(Boolean skipBranchesWithoutAppveyorYml) {
    this.skipBranchesWithoutAppveyorYml = skipBranchesWithoutAppveyorYml;
  }

  public Project enableSecureVariablesInPullRequests(Boolean enableSecureVariablesInPullRequests) {
    this.enableSecureVariablesInPullRequests = enableSecureVariablesInPullRequests;
    return this;
  }

   /**
   * Get enableSecureVariablesInPullRequests
   * @return enableSecureVariablesInPullRequests
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getEnableSecureVariablesInPullRequests() {
    return enableSecureVariablesInPullRequests;
  }

  public void setEnableSecureVariablesInPullRequests(Boolean enableSecureVariablesInPullRequests) {
    this.enableSecureVariablesInPullRequests = enableSecureVariablesInPullRequests;
  }

  public Project enableSecureVariablesInPullRequestsFromSameRepo(Boolean enableSecureVariablesInPullRequestsFromSameRepo) {
    this.enableSecureVariablesInPullRequestsFromSameRepo = enableSecureVariablesInPullRequestsFromSameRepo;
    return this;
  }

   /**
   * Get enableSecureVariablesInPullRequestsFromSameRepo
   * @return enableSecureVariablesInPullRequestsFromSameRepo
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getEnableSecureVariablesInPullRequestsFromSameRepo() {
    return enableSecureVariablesInPullRequestsFromSameRepo;
  }

  public void setEnableSecureVariablesInPullRequestsFromSameRepo(Boolean enableSecureVariablesInPullRequestsFromSameRepo) {
    this.enableSecureVariablesInPullRequestsFromSameRepo = enableSecureVariablesInPullRequestsFromSameRepo;
  }

  public Project enableDeploymentInPullRequests(Boolean enableDeploymentInPullRequests) {
    this.enableDeploymentInPullRequests = enableDeploymentInPullRequests;
    return this;
  }

   /**
   * Get enableDeploymentInPullRequests
   * @return enableDeploymentInPullRequests
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getEnableDeploymentInPullRequests() {
    return enableDeploymentInPullRequests;
  }

  public void setEnableDeploymentInPullRequests(Boolean enableDeploymentInPullRequests) {
    this.enableDeploymentInPullRequests = enableDeploymentInPullRequests;
  }

  public Project saveBuildCacheInPullRequests(Boolean saveBuildCacheInPullRequests) {
    this.saveBuildCacheInPullRequests = saveBuildCacheInPullRequests;
    return this;
  }

   /**
   * Get saveBuildCacheInPullRequests
   * @return saveBuildCacheInPullRequests
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getSaveBuildCacheInPullRequests() {
    return saveBuildCacheInPullRequests;
  }

  public void setSaveBuildCacheInPullRequests(Boolean saveBuildCacheInPullRequests) {
    this.saveBuildCacheInPullRequests = saveBuildCacheInPullRequests;
  }

  public Project rollingBuilds(Boolean rollingBuilds) {
    this.rollingBuilds = rollingBuilds;
    return this;
  }

   /**
   * Get rollingBuilds
   * @return rollingBuilds
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getRollingBuilds() {
    return rollingBuilds;
  }

  public void setRollingBuilds(Boolean rollingBuilds) {
    this.rollingBuilds = rollingBuilds;
  }

  public Project rollingBuildsDoNotCancelRunningBuilds(Boolean rollingBuildsDoNotCancelRunningBuilds) {
    this.rollingBuildsDoNotCancelRunningBuilds = rollingBuildsDoNotCancelRunningBuilds;
    return this;
  }

   /**
   * Get rollingBuildsDoNotCancelRunningBuilds
   * @return rollingBuildsDoNotCancelRunningBuilds
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getRollingBuildsDoNotCancelRunningBuilds() {
    return rollingBuildsDoNotCancelRunningBuilds;
  }

  public void setRollingBuildsDoNotCancelRunningBuilds(Boolean rollingBuildsDoNotCancelRunningBuilds) {
    this.rollingBuildsDoNotCancelRunningBuilds = rollingBuildsDoNotCancelRunningBuilds;
  }

  public Project alwaysBuildClosedPullRequests(Boolean alwaysBuildClosedPullRequests) {
    this.alwaysBuildClosedPullRequests = alwaysBuildClosedPullRequests;
    return this;
  }

   /**
   * Get alwaysBuildClosedPullRequests
   * @return alwaysBuildClosedPullRequests
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getAlwaysBuildClosedPullRequests() {
    return alwaysBuildClosedPullRequests;
  }

  public void setAlwaysBuildClosedPullRequests(Boolean alwaysBuildClosedPullRequests) {
    this.alwaysBuildClosedPullRequests = alwaysBuildClosedPullRequests;
  }

  public Project tags(String tags) {
    this.tags = tags;
    return this;
  }

   /**
   * Comma-separated list of project 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 project 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;
  }

  public Project nuGetFeed(NuGetFeed nuGetFeed) {
    this.nuGetFeed = nuGetFeed;
    return this;
  }

   /**
   * Not present in response from addProject.
   * @return nuGetFeed
  **/
  @ApiModelProperty(example = "null", value = "Not present in response from addProject.")
  public NuGetFeed getNuGetFeed() {
    return nuGetFeed;
  }

  public void setNuGetFeed(NuGetFeed nuGetFeed) {
    this.nuGetFeed = nuGetFeed;
  }

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

   /**
   * Not present in response from addProject. Not always present in response from getProjects (only after updateProject or startBuild?).
   * @return securityDescriptor
  **/
  @ApiModelProperty(example = "null", value = "Not present in response from addProject. Not always present in response from getProjects (only after updateProject or startBuild?).")
  public SecurityDescriptor getSecurityDescriptor() {
    return securityDescriptor;
  }

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


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Project project = (Project) o;
    return Objects.equals(this.projectId, project.projectId) &&
        Objects.equals(this.accountName, project.accountName) &&
        Objects.equals(this.name, project.name) &&
        Objects.equals(this.slug, project.slug) &&
        Objects.equals(this.created, project.created) &&
        Objects.equals(this.updated, project.updated) &&
        Objects.equals(this.accountId, project.accountId) &&
        Objects.equals(this.builds, project.builds) &&
        Objects.equals(this.repositoryType, project.repositoryType) &&
        Objects.equals(this.repositoryScm, project.repositoryScm) &&
        Objects.equals(this.repositoryName, project.repositoryName) &&
        Objects.equals(this.repositoryBranch, project.repositoryBranch) &&
        Objects.equals(this.isPrivate, project.isPrivate) &&
        Objects.equals(this.skipBranchesWithoutAppveyorYml, project.skipBranchesWithoutAppveyorYml) &&
        Objects.equals(this.enableSecureVariablesInPullRequests, project.enableSecureVariablesInPullRequests) &&
        Objects.equals(this.enableSecureVariablesInPullRequestsFromSameRepo, project.enableSecureVariablesInPullRequestsFromSameRepo) &&
        Objects.equals(this.enableDeploymentInPullRequests, project.enableDeploymentInPullRequests) &&
        Objects.equals(this.saveBuildCacheInPullRequests, project.saveBuildCacheInPullRequests) &&
        Objects.equals(this.rollingBuilds, project.rollingBuilds) &&
        Objects.equals(this.rollingBuildsDoNotCancelRunningBuilds, project.rollingBuildsDoNotCancelRunningBuilds) &&
        Objects.equals(this.alwaysBuildClosedPullRequests, project.alwaysBuildClosedPullRequests) &&
        Objects.equals(this.tags, project.tags) &&
        Objects.equals(this.nuGetFeed, project.nuGetFeed) &&
        Objects.equals(this.securityDescriptor, project.securityDescriptor);
  }

  @Override
  public int hashCode() {
    return Objects.hash(projectId, accountName, name, slug, created, updated, accountId, builds, repositoryType, repositoryScm, repositoryName, repositoryBranch, isPrivate, skipBranchesWithoutAppveyorYml, enableSecureVariablesInPullRequests, enableSecureVariablesInPullRequestsFromSameRepo, enableDeploymentInPullRequests, saveBuildCacheInPullRequests, rollingBuilds, rollingBuildsDoNotCancelRunningBuilds, alwaysBuildClosedPullRequests, tags, nuGetFeed, securityDescriptor);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Project {\n");
    
    sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
    sb.append("    accountName: ").append(toIndentedString(accountName)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    slug: ").append(toIndentedString(slug)).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("    builds: ").append(toIndentedString(builds)).append("\n");
    sb.append("    repositoryType: ").append(toIndentedString(repositoryType)).append("\n");
    sb.append("    repositoryScm: ").append(toIndentedString(repositoryScm)).append("\n");
    sb.append("    repositoryName: ").append(toIndentedString(repositoryName)).append("\n");
    sb.append("    repositoryBranch: ").append(toIndentedString(repositoryBranch)).append("\n");
    sb.append("    isPrivate: ").append(toIndentedString(isPrivate)).append("\n");
    sb.append("    skipBranchesWithoutAppveyorYml: ").append(toIndentedString(skipBranchesWithoutAppveyorYml)).append("\n");
    sb.append("    enableSecureVariablesInPullRequests: ").append(toIndentedString(enableSecureVariablesInPullRequests)).append("\n");
    sb.append("    enableSecureVariablesInPullRequestsFromSameRepo: ").append(toIndentedString(enableSecureVariablesInPullRequestsFromSameRepo)).append("\n");
    sb.append("    enableDeploymentInPullRequests: ").append(toIndentedString(enableDeploymentInPullRequests)).append("\n");
    sb.append("    saveBuildCacheInPullRequests: ").append(toIndentedString(saveBuildCacheInPullRequests)).append("\n");
    sb.append("    rollingBuilds: ").append(toIndentedString(rollingBuilds)).append("\n");
    sb.append("    rollingBuildsDoNotCancelRunningBuilds: ").append(toIndentedString(rollingBuildsDoNotCancelRunningBuilds)).append("\n");
    sb.append("    alwaysBuildClosedPullRequests: ").append(toIndentedString(alwaysBuildClosedPullRequests)).append("\n");
    sb.append("    tags: ").append(toIndentedString(tags)).append("\n");
    sb.append("    nuGetFeed: ").append(toIndentedString(nuGetFeed)).append("\n");
    sb.append("    securityDescriptor: ").append(toIndentedString(securityDescriptor)).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