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

name.kevinlocke.appveyor.model.UserAddition 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 javax.validation.constraints.*;

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

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

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

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

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

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

  public UserAddition fullName(String fullName) {
    this.fullName = fullName;
    return this;
  }

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

  public void setFullName(String fullName) {
    this.fullName = fullName;
  }

  public UserAddition email(String email) {
    this.email = email;
    return this;
  }

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

  public void setEmail(String email) {
    this.email = email;
  }

  public UserAddition roleId(Integer roleId) {
    this.roleId = roleId;
    return this;
  }

   /**
   * Technically `roleId` has default value 0 and is not required, but since role 0 never exists it would always cause a 404 response. 
   * minimum: 0
   * @return roleId
  **/
  @NotNull
  @Min(0)
  @ApiModelProperty(example = "null", required = true, value = "Technically `roleId` has default value 0 and is not required, but since role 0 never exists it would always cause a 404 response. ")
  public Integer getRoleId() {
    return roleId;
  }

  public void setRoleId(Integer roleId) {
    this.roleId = roleId;
  }

  public UserAddition generatePassword(Boolean generatePassword) {
    this.generatePassword = generatePassword;
    return this;
  }

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

  public void setGeneratePassword(Boolean generatePassword) {
    this.generatePassword = generatePassword;
  }

  public UserAddition password(String password) {
    this.password = password;
    return this;
  }

   /**
   * Get password
   * @return password
  **/
  @Size(min=1)
  @ApiModelProperty(example = "null", value = "")
  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public UserAddition confirmPassword(String confirmPassword) {
    this.confirmPassword = confirmPassword;
    return this;
  }

   /**
   * Get confirmPassword
   * @return confirmPassword
  **/
  @Size(min=1)
  @ApiModelProperty(example = "null", value = "")
  public String getConfirmPassword() {
    return confirmPassword;
  }

  public void setConfirmPassword(String confirmPassword) {
    this.confirmPassword = confirmPassword;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserAddition userAddition = (UserAddition) o;
    return Objects.equals(this.fullName, userAddition.fullName) &&
        Objects.equals(this.email, userAddition.email) &&
        Objects.equals(this.roleId, userAddition.roleId) &&
        Objects.equals(this.generatePassword, userAddition.generatePassword) &&
        Objects.equals(this.password, userAddition.password) &&
        Objects.equals(this.confirmPassword, userAddition.confirmPassword);
  }

  @Override
  public int hashCode() {
    return Objects.hash(fullName, email, roleId, generatePassword, password, confirmPassword);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserAddition {\n");
    
    sb.append("    fullName: ").append(toIndentedString(fullName)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    roleId: ").append(toIndentedString(roleId)).append("\n");
    sb.append("    generatePassword: ").append(toIndentedString(generatePassword)).append("\n");
    sb.append("    password: ").append(toIndentedString(password)).append("\n");
    sb.append("    confirmPassword: ").append(toIndentedString(confirmPassword)).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