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

name.kevinlocke.appveyor.model.ProjectAddition 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.RepositoryAuthenticationType;
import name.kevinlocke.appveyor.model.RepositoryProvider;
import javax.validation.constraints.*;

/**
 * `repositoryAuthentication` is only used for git, mercurial, subversion `repositoryProvider`.
 */
@ApiModel(description = "`repositoryAuthentication` is only used for git, mercurial, subversion `repositoryProvider`.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-11-23T14:03:51.855-07:00")
public class ProjectAddition {
  @SerializedName("repositoryProvider")
  private RepositoryProvider repositoryProvider = null;

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

  @SerializedName("repositoryAuthentication")
  private RepositoryAuthenticationType repositoryAuthentication = null;

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

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

  public ProjectAddition repositoryProvider(RepositoryProvider repositoryProvider) {
    this.repositoryProvider = repositoryProvider;
    return this;
  }

   /**
   * Get repositoryProvider
   * @return repositoryProvider
  **/
  @NotNull
  @ApiModelProperty(example = "null", required = true, value = "")
  public RepositoryProvider getRepositoryProvider() {
    return repositoryProvider;
  }

  public void setRepositoryProvider(RepositoryProvider repositoryProvider) {
    this.repositoryProvider = repositoryProvider;
  }

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

   /**
   * URL when repositoryProvider is git, mercurial, subversion username/project when repositoryProvider is gitHub
   * @return repositoryName
  **/
  @NotNull
  @Size(min=1)
  @ApiModelProperty(example = "null", required = true, value = "URL when repositoryProvider is git, mercurial, subversion username/project when repositoryProvider is gitHub")
  public String getRepositoryName() {
    return repositoryName;
  }

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

  public ProjectAddition repositoryAuthentication(RepositoryAuthenticationType repositoryAuthentication) {
    this.repositoryAuthentication = repositoryAuthentication;
    return this;
  }

   /**
   * Get repositoryAuthentication
   * @return repositoryAuthentication
  **/
  @ApiModelProperty(example = "null", value = "")
  public RepositoryAuthenticationType getRepositoryAuthentication() {
    return repositoryAuthentication;
  }

  public void setRepositoryAuthentication(RepositoryAuthenticationType repositoryAuthentication) {
    this.repositoryAuthentication = repositoryAuthentication;
  }

  public ProjectAddition repositoryUsername(String repositoryUsername) {
    this.repositoryUsername = repositoryUsername;
    return this;
  }

   /**
   * Required if repositoryAuthentication is credentials
   * @return repositoryUsername
  **/
  @ApiModelProperty(example = "null", value = "Required if repositoryAuthentication is credentials")
  public String getRepositoryUsername() {
    return repositoryUsername;
  }

  public void setRepositoryUsername(String repositoryUsername) {
    this.repositoryUsername = repositoryUsername;
  }

  public ProjectAddition repositoryPassword(String repositoryPassword) {
    this.repositoryPassword = repositoryPassword;
    return this;
  }

   /**
   * Required if repositoryAuthentication is credentials
   * @return repositoryPassword
  **/
  @ApiModelProperty(example = "null", value = "Required if repositoryAuthentication is credentials")
  public String getRepositoryPassword() {
    return repositoryPassword;
  }

  public void setRepositoryPassword(String repositoryPassword) {
    this.repositoryPassword = repositoryPassword;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProjectAddition projectAddition = (ProjectAddition) o;
    return Objects.equals(this.repositoryProvider, projectAddition.repositoryProvider) &&
        Objects.equals(this.repositoryName, projectAddition.repositoryName) &&
        Objects.equals(this.repositoryAuthentication, projectAddition.repositoryAuthentication) &&
        Objects.equals(this.repositoryUsername, projectAddition.repositoryUsername) &&
        Objects.equals(this.repositoryPassword, projectAddition.repositoryPassword);
  }

  @Override
  public int hashCode() {
    return Objects.hash(repositoryProvider, repositoryName, repositoryAuthentication, repositoryUsername, repositoryPassword);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProjectAddition {\n");
    
    sb.append("    repositoryProvider: ").append(toIndentedString(repositoryProvider)).append("\n");
    sb.append("    repositoryName: ").append(toIndentedString(repositoryName)).append("\n");
    sb.append("    repositoryAuthentication: ").append(toIndentedString(repositoryAuthentication)).append("\n");
    sb.append("    repositoryUsername: ").append(toIndentedString(repositoryUsername)).append("\n");
    sb.append("    repositoryPassword: ").append(toIndentedString(repositoryPassword)).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