/*
 * appNG REST API
 * The REST API for appNG
 *
 * OpenAPI spec version: 1.0.0
 * Contact: matthias.mueller@appng.org
 *
 * 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 org.appng.api.rest.model;

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

/**
 * 
 */
@ApiModel(description = "")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-03-20T12:57:47.319+01:00")
public class User implements Serializable {
  private static final long serialVersionUID = 1L;

  @JsonProperty("name")
  private String name = null;

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

  @JsonProperty("locale")
  private String locale = null;

  @JsonProperty("timezone")
  private String timezone = null;

  @JsonProperty("decimalSeparator")
  private String decimalSeparator = null;

  @JsonProperty("groupingSeparator")
  private String groupingSeparator = null;

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

   /**
   * 
   * @return name
  **/
  @ApiModelProperty(value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

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

   /**
   * The email address of the user.
   * @return email
  **/
  @ApiModelProperty(example = "john@example.com", value = "The email address of the user.")
  public String getEmail() {
    return email;
  }

  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
  **/
  @ApiModelProperty(example = "en_US", value = "The IETF BCP 47 language tag for the user.")
  public String getLocale() {
    return locale;
  }

  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
  **/
  @ApiModelProperty(example = "Europe/Berlin", value = "The name of the IANA time zone the user is located at.")
  public String getTimezone() {
    return timezone;
  }

  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
  **/
  @ApiModelProperty(example = ".", value = "The charactor used as a decimal separator.")
  public String getDecimalSeparator() {
    return decimalSeparator;
  }

  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
  **/
  @ApiModelProperty(example = ",", value = "The charactor used when grouping numbers.")
  public String getGroupingSeparator() {
    return groupingSeparator;
  }

  public void setGroupingSeparator(String groupingSeparator) {
    this.groupingSeparator = groupingSeparator;
  }


  @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(this.name, user.name) &&
        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, 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("    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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

