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

jp.co.freee.accounting.models.UserParams Maven / Gradle / Ivy

There is a newer version: 2.29.0
Show newest version
/*
 * freee API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package jp.co.freee.accounting.models;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * UserParams
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UserParams {
  public static final String SERIALIZED_NAME_DISPLAY_NAME = "display_name";
  @SerializedName(SERIALIZED_NAME_DISPLAY_NAME)
  private String displayName;

  public static final String SERIALIZED_NAME_FIRST_NAME = "first_name";
  @SerializedName(SERIALIZED_NAME_FIRST_NAME)
  private String firstName;

  public static final String SERIALIZED_NAME_FIRST_NAME_KANA = "first_name_kana";
  @SerializedName(SERIALIZED_NAME_FIRST_NAME_KANA)
  private String firstNameKana;

  public static final String SERIALIZED_NAME_LAST_NAME = "last_name";
  @SerializedName(SERIALIZED_NAME_LAST_NAME)
  private String lastName;

  public static final String SERIALIZED_NAME_LAST_NAME_KANA = "last_name_kana";
  @SerializedName(SERIALIZED_NAME_LAST_NAME_KANA)
  private String lastNameKana;

  public UserParams() { 
  }

  public UserParams displayName(String displayName) {
    
    this.displayName = displayName;
    return this;
  }

   /**
   * 表示名 (20文字以内)
   * @return displayName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "山田太郎", value = "表示名 (20文字以内)")

  public String getDisplayName() {
    return displayName;
  }


  public void setDisplayName(String displayName) {
    this.displayName = displayName;
  }


  public UserParams firstName(String firstName) {
    
    this.firstName = firstName;
    return this;
  }

   /**
   * 氏名(名) (20文字以内)
   * @return firstName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "太郎", value = "氏名(名) (20文字以内)")

  public String getFirstName() {
    return firstName;
  }


  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }


  public UserParams firstNameKana(String firstNameKana) {
    
    this.firstNameKana = firstNameKana;
    return this;
  }

   /**
   * 氏名(カナ・名) (20文字以内)
   * @return firstNameKana
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "タロウ", value = "氏名(カナ・名) (20文字以内)")

  public String getFirstNameKana() {
    return firstNameKana;
  }


  public void setFirstNameKana(String firstNameKana) {
    this.firstNameKana = firstNameKana;
  }


  public UserParams lastName(String lastName) {
    
    this.lastName = lastName;
    return this;
  }

   /**
   * 氏名(姓) (20文字以内)
   * @return lastName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "山田", value = "氏名(姓) (20文字以内)")

  public String getLastName() {
    return lastName;
  }


  public void setLastName(String lastName) {
    this.lastName = lastName;
  }


  public UserParams lastNameKana(String lastNameKana) {
    
    this.lastNameKana = lastNameKana;
    return this;
  }

   /**
   * 氏名(カナ・姓) (20文字以内)
   * @return lastNameKana
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ヤマダ", value = "氏名(カナ・姓) (20文字以内)")

  public String getLastNameKana() {
    return lastNameKana;
  }


  public void setLastNameKana(String lastNameKana) {
    this.lastNameKana = lastNameKana;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserParams userParams = (UserParams) o;
    return Objects.equals(this.displayName, userParams.displayName) &&
        Objects.equals(this.firstName, userParams.firstName) &&
        Objects.equals(this.firstNameKana, userParams.firstNameKana) &&
        Objects.equals(this.lastName, userParams.lastName) &&
        Objects.equals(this.lastNameKana, userParams.lastNameKana);
  }

  @Override
  public int hashCode() {
    return Objects.hash(displayName, firstName, firstNameKana, lastName, lastNameKana);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserParams {\n");
    sb.append("    displayName: ").append(toIndentedString(displayName)).append("\n");
    sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
    sb.append("    firstNameKana: ").append(toIndentedString(firstNameKana)).append("\n");
    sb.append("    lastName: ").append(toIndentedString(lastName)).append("\n");
    sb.append("    lastNameKana: ").append(toIndentedString(lastNameKana)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy