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

name.kevinlocke.appveyor.model.ProjectSettingsResults 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.BuildWorkerImage;
import name.kevinlocke.appveyor.model.Project;
import name.kevinlocke.appveyor.model.ProjectWithConfiguration;
import name.kevinlocke.appveyor.model.StringValueObject;
import javax.validation.constraints.*;

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

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

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

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

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

  public ProjectSettingsResults project(Project project) {
    this.project = project;
    return this;
  }

   /**
   * Get project
   * @return project
  **/
  @ApiModelProperty(example = "null", value = "")
  public Project getProject() {
    return project;
  }

  public void setProject(Project project) {
    this.project = project;
  }

  public ProjectSettingsResults settings(ProjectWithConfiguration settings) {
    this.settings = settings;
    return this;
  }

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

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

  public ProjectSettingsResults images(List images) {
    this.images = images;
    return this;
  }

  public ProjectSettingsResults addImagesItem(BuildWorkerImage imagesItem) {
    this.images.add(imagesItem);
    return this;
  }

   /**
   * Get images
   * @return images
  **/
  @ApiModelProperty(example = "null", value = "")
  public List getImages() {
    return images;
  }

  public void setImages(List images) {
    this.images = images;
  }

  public ProjectSettingsResults buildClouds(List buildClouds) {
    this.buildClouds = buildClouds;
    return this;
  }

  public ProjectSettingsResults addBuildCloudsItem(StringValueObject buildCloudsItem) {
    this.buildClouds.add(buildCloudsItem);
    return this;
  }

   /**
   * Get buildClouds
   * @return buildClouds
  **/
  @ApiModelProperty(example = "null", value = "")
  public List getBuildClouds() {
    return buildClouds;
  }

  public void setBuildClouds(List buildClouds) {
    this.buildClouds = buildClouds;
  }

  public ProjectSettingsResults defaultImageName(String defaultImageName) {
    this.defaultImageName = defaultImageName;
    return this;
  }

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

  public void setDefaultImageName(String defaultImageName) {
    this.defaultImageName = defaultImageName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProjectSettingsResults projectSettingsResults = (ProjectSettingsResults) o;
    return Objects.equals(this.project, projectSettingsResults.project) &&
        Objects.equals(this.settings, projectSettingsResults.settings) &&
        Objects.equals(this.images, projectSettingsResults.images) &&
        Objects.equals(this.buildClouds, projectSettingsResults.buildClouds) &&
        Objects.equals(this.defaultImageName, projectSettingsResults.defaultImageName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(project, settings, images, buildClouds, defaultImageName);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProjectSettingsResults {\n");
    
    sb.append("    project: ").append(toIndentedString(project)).append("\n");
    sb.append("    settings: ").append(toIndentedString(settings)).append("\n");
    sb.append("    images: ").append(toIndentedString(images)).append("\n");
    sb.append("    buildClouds: ").append(toIndentedString(buildClouds)).append("\n");
    sb.append("    defaultImageName: ").append(toIndentedString(defaultImageName)).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