/*
 * appNG REST API
 * The REST API for appNG
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: matthias.mueller@appng.org
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.appng.openapi.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * User
 */
@JsonPropertyOrder({
  User.JSON_PROPERTY_NAME,
  User.JSON_PROPERTY_NICK_NAME,
  User.JSON_PROPERTY_AUTHENTICATED,
  User.JSON_PROPERTY_EMAIL,
  User.JSON_PROPERTY_LOCALE,
  User.JSON_PROPERTY_TIMEZONE,
  User.JSON_PROPERTY_DECIMAL_SEPARATOR,
  User.JSON_PROPERTY_GROUPING_SEPARATOR
})
@JsonTypeName("User")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-06T11:11:26.226947+02:00[Europe/Berlin]")
public class User {
  public static final String JSON_PROPERTY_NAME = "name";
  private String name;

  public static final String JSON_PROPERTY_NICK_NAME = "nickName";
  private String nickName;

  public static final String JSON_PROPERTY_AUTHENTICATED = "authenticated";
  private Boolean authenticated;

  public static final String JSON_PROPERTY_EMAIL = "email";
  private String email;

  public static final String JSON_PROPERTY_LOCALE = "locale";
  private String locale;

  public static final String JSON_PROPERTY_TIMEZONE = "timezone";
  private String timezone;

  public static final String JSON_PROPERTY_DECIMAL_SEPARATOR = "decimalSeparator";
  private String decimalSeparator;

  public static final String JSON_PROPERTY_GROUPING_SEPARATOR = "groupingSeparator";
  private String groupingSeparator;


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

   /**
   * the user&#39;s real name
   * @return name
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "the user's real name")
  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getName() {
    return name;
  }


  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setName(String name) {
    this.name = name;
  }


  public User nickName(String nickName) {
    
    this.nickName = nickName;
    return this;
  }

   /**
   * the user&#39;s nickname
   * @return nickName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "the user's nickname")
  @JsonProperty(JSON_PROPERTY_NICK_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getNickName() {
    return nickName;
  }


  @JsonProperty(JSON_PROPERTY_NICK_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNickName(String nickName) {
    this.nickName = nickName;
  }


  public User authenticated(Boolean authenticated) {
    
    this.authenticated = authenticated;
    return this;
  }

   /**
   * Get authenticated
   * @return authenticated
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_AUTHENTICATED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getAuthenticated() {
    return authenticated;
  }


  @JsonProperty(JSON_PROPERTY_AUTHENTICATED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAuthenticated(Boolean authenticated) {
    this.authenticated = authenticated;
  }


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

   /**
   * The email address of the user.
   * @return email
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "john@example.com", value = "The email address of the user.")
  @JsonProperty(JSON_PROPERTY_EMAIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getEmail() {
    return email;
  }


  @JsonProperty(JSON_PROPERTY_EMAIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEmail(String email) {
    this.email = email;
  }


  public User locale(String locale) {
    
    this.locale = locale;
    return this;
  }

   /**
   * The IETF BCP 47 language tag for the user.
   * @return locale
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "en_US", value = "The IETF BCP 47 language tag for the user.")
  @JsonProperty(JSON_PROPERTY_LOCALE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getLocale() {
    return locale;
  }


  @JsonProperty(JSON_PROPERTY_LOCALE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLocale(String locale) {
    this.locale = locale;
  }


  public User timezone(String timezone) {
    
    this.timezone = timezone;
    return this;
  }

   /**
   * The name of the IANA time zone the user is located at.
   * @return timezone
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Europe/Berlin", value = "The name of the IANA time zone the user is located at.")
  @JsonProperty(JSON_PROPERTY_TIMEZONE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getTimezone() {
    return timezone;
  }


  @JsonProperty(JSON_PROPERTY_TIMEZONE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTimezone(String timezone) {
    this.timezone = timezone;
  }


  public User decimalSeparator(String decimalSeparator) {
    
    this.decimalSeparator = decimalSeparator;
    return this;
  }

   /**
   * The charactor used as a decimal separator.
   * @return decimalSeparator
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = ".", value = "The charactor used as a decimal separator.")
  @JsonProperty(JSON_PROPERTY_DECIMAL_SEPARATOR)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getDecimalSeparator() {
    return decimalSeparator;
  }


  @JsonProperty(JSON_PROPERTY_DECIMAL_SEPARATOR)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDecimalSeparator(String decimalSeparator) {
    this.decimalSeparator = decimalSeparator;
  }


  public User groupingSeparator(String groupingSeparator) {
    
    this.groupingSeparator = groupingSeparator;
    return this;
  }

   /**
   * The charactor used when grouping numbers.
   * @return groupingSeparator
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = ",", value = "The charactor used when grouping numbers.")
  @JsonProperty(JSON_PROPERTY_GROUPING_SEPARATOR)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getGroupingSeparator() {
    return groupingSeparator;
  }


  @JsonProperty(JSON_PROPERTY_GROUPING_SEPARATOR)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setGroupingSeparator(String groupingSeparator) {
    this.groupingSeparator = groupingSeparator;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    User user = (User) o;
    return Objects.equals(this.name, user.name) &&
        Objects.equals(this.nickName, user.nickName) &&
        Objects.equals(this.authenticated, user.authenticated) &&
        Objects.equals(this.email, user.email) &&
        Objects.equals(this.locale, user.locale) &&
        Objects.equals(this.timezone, user.timezone) &&
        Objects.equals(this.decimalSeparator, user.decimalSeparator) &&
        Objects.equals(this.groupingSeparator, user.groupingSeparator);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, nickName, authenticated, email, locale, timezone, decimalSeparator, groupingSeparator);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class User {\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    nickName: ").append(toIndentedString(nickName)).append("\n");
    sb.append("    authenticated: ").append(toIndentedString(authenticated)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    locale: ").append(toIndentedString(locale)).append("\n");
    sb.append("    timezone: ").append(toIndentedString(timezone)).append("\n");
    sb.append("    decimalSeparator: ").append(toIndentedString(decimalSeparator)).append("\n");
    sb.append("    groupingSeparator: ").append(toIndentedString(groupingSeparator)).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    ");
  }

}

