code: /*
   * lakeFS API
   * lakeFS HTTP API
   *
   * The version of the OpenAPI document: 0.1.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 io.lakefs.clients.api.model;
  
  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;
  
  /**
   * UpdatePasswordByToken
   */
  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
  public class UpdatePasswordByToken {
    public static final String SERIALIZED_NAME_TOKEN = "token";
    @SerializedName(SERIALIZED_NAME_TOKEN)
    private String token;
  
    public static final String SERIALIZED_NAME_NEW_PASSWORD = "newPassword";
    @SerializedName(SERIALIZED_NAME_NEW_PASSWORD)
    private String newPassword;
  
    public static final String SERIALIZED_NAME_EMAIL = "email";
    @SerializedName(SERIALIZED_NAME_EMAIL)
    private String email;
  
  
    public UpdatePasswordByToken token(String token) {
      
      this.token = token;
      return this;
    }
  
     /**
     * token used for authentication
     * @return token
    **/
    @javax.annotation.Nonnull
    @ApiModelProperty(required = true, value = "token used for authentication")
  
    public String getToken() {
      return token;
    }
  
  
    public void setToken(String token) {
      this.token = token;
    }
  
  
    public UpdatePasswordByToken newPassword(String newPassword) {
      
      this.newPassword = newPassword;
      return this;
    }
  
     /**
     * new password to update
     * @return newPassword
    **/
    @javax.annotation.Nonnull
    @ApiModelProperty(required = true, value = "new password to update")
  
    public String getNewPassword() {
      return newPassword;
    }
  
  
    public void setNewPassword(String newPassword) {
      this.newPassword = newPassword;
    }
  
  
    public UpdatePasswordByToken email(String email) {
      
      this.email = email;
      return this;
    }
  
     /**
     * optional user email to match the token for verification
     * @return email
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(value = "optional user email to match the token for verification")
  
    public String getEmail() {
      return email;
    }
  
  
    public void setEmail(String email) {
      this.email = email;
    }
  
  
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      UpdatePasswordByToken updatePasswordByToken = (UpdatePasswordByToken) o;
      return Objects.equals(this.token, updatePasswordByToken.token) &&
          Objects.equals(this.newPassword, updatePasswordByToken.newPassword) &&
          Objects.equals(this.email, updatePasswordByToken.email);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(token, newPassword, email);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class UpdatePasswordByToken {\n");
      sb.append("    token: ").append(toIndentedString(token)).append("\n");
      sb.append("    newPassword: ").append(toIndentedString(newPassword)).append("\n");
      sb.append("    email: ").append(toIndentedString(email)).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    ");
    }
  
  }
  
  