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

io.wisetime.generated.connect.User Maven / Gradle / Ivy

There is a newer version: 2.2.6
Show newest version
package io.wisetime.generated.connect;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.*;
import javax.validation.Valid;

import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;



public class User   {
  
  private @Valid String name;
  private @Valid String email;
  private @Valid String externalId;
  private @Valid String businessRole;
  private @Valid Integer experienceWeightingPercent;

  /**
   **/
  public User name(String name) {
    this.name = name;
    return this;
  }

  
  @ApiModelProperty(value = "")
  @JsonProperty("name")
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }

  /**
   **/
  public User email(String email) {
    this.email = email;
    return this;
  }

  
  @ApiModelProperty(value = "")
  @JsonProperty("email")
  public String getEmail() {
    return email;
  }
  public void setEmail(String email) {
    this.email = email;
  }

  /**
   **/
  public User externalId(String externalId) {
    this.externalId = externalId;
    return this;
  }

  
  @ApiModelProperty(value = "")
  @JsonProperty("externalId")
  public String getExternalId() {
    return externalId;
  }
  public void setExternalId(String externalId) {
    this.externalId = externalId;
  }

  /**
   **/
  public User businessRole(String businessRole) {
    this.businessRole = businessRole;
    return this;
  }

  
  @ApiModelProperty(value = "")
  @JsonProperty("businessRole")
  public String getBusinessRole() {
    return businessRole;
  }
  public void setBusinessRole(String businessRole) {
    this.businessRole = businessRole;
  }

  /**
   **/
  public User experienceWeightingPercent(Integer experienceWeightingPercent) {
    this.experienceWeightingPercent = experienceWeightingPercent;
    return this;
  }

  
  @ApiModelProperty(value = "")
  @JsonProperty("experienceWeightingPercent")
  public Integer getExperienceWeightingPercent() {
    return experienceWeightingPercent;
  }
  public void setExperienceWeightingPercent(Integer experienceWeightingPercent) {
    this.experienceWeightingPercent = experienceWeightingPercent;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    User user = (User) o;
    return Objects.equals(name, user.name) &&
        Objects.equals(email, user.email) &&
        Objects.equals(externalId, user.externalId) &&
        Objects.equals(businessRole, user.businessRole) &&
        Objects.equals(experienceWeightingPercent, user.experienceWeightingPercent);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, email, externalId, businessRole, experienceWeightingPercent);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class User {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    externalId: ").append(toIndentedString(externalId)).append("\n");
    sb.append("    businessRole: ").append(toIndentedString(businessRole)).append("\n");
    sb.append("    experienceWeightingPercent: ").append(toIndentedString(experienceWeightingPercent)).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 - 2024 Weber Informatics LLC | Privacy Policy