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

name.kevinlocke.appveyor.model.BuildWorkerImage 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.BuildCloudName;
import name.kevinlocke.appveyor.model.BuildWorkerImageName;
import name.kevinlocke.appveyor.model.OSType;
import javax.validation.constraints.*;

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

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

  @SerializedName("buildCloudName")
  private BuildCloudName buildCloudName = null;

  @SerializedName("osType")
  private OSType osType = null;

  public BuildWorkerImage buildWorkerImageId(Integer buildWorkerImageId) {
    this.buildWorkerImageId = buildWorkerImageId;
    return this;
  }

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

  public void setBuildWorkerImageId(Integer buildWorkerImageId) {
    this.buildWorkerImageId = buildWorkerImageId;
  }

  public BuildWorkerImage name(BuildWorkerImageName name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @NotNull
  @ApiModelProperty(example = "null", required = true, value = "")
  public BuildWorkerImageName getName() {
    return name;
  }

  public void setName(BuildWorkerImageName name) {
    this.name = name;
  }

  public BuildWorkerImage buildCloudName(BuildCloudName buildCloudName) {
    this.buildCloudName = buildCloudName;
    return this;
  }

   /**
   * Get buildCloudName
   * @return buildCloudName
  **/
  @ApiModelProperty(example = "null", value = "")
  public BuildCloudName getBuildCloudName() {
    return buildCloudName;
  }

  public void setBuildCloudName(BuildCloudName buildCloudName) {
    this.buildCloudName = buildCloudName;
  }

  public BuildWorkerImage osType(OSType osType) {
    this.osType = osType;
    return this;
  }

   /**
   * Get osType
   * @return osType
  **/
  @ApiModelProperty(example = "null", value = "")
  public OSType getOsType() {
    return osType;
  }

  public void setOsType(OSType osType) {
    this.osType = osType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BuildWorkerImage buildWorkerImage = (BuildWorkerImage) o;
    return Objects.equals(this.buildWorkerImageId, buildWorkerImage.buildWorkerImageId) &&
        Objects.equals(this.name, buildWorkerImage.name) &&
        Objects.equals(this.buildCloudName, buildWorkerImage.buildCloudName) &&
        Objects.equals(this.osType, buildWorkerImage.osType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(buildWorkerImageId, name, buildCloudName, osType);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BuildWorkerImage {\n");
    
    sb.append("    buildWorkerImageId: ").append(toIndentedString(buildWorkerImageId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    buildCloudName: ").append(toIndentedString(buildCloudName)).append("\n");
    sb.append("    osType: ").append(toIndentedString(osType)).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