package com.airlock.iam.publicselfservice.domain.model.step;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

public class SecretQuestionAnswer {
   private String questionId;
   private String answer;

   @SuppressFBWarnings(justification = "generated code")
   public static SecretQuestionAnswer.SecretQuestionAnswerBuilder builder() {
      return new SecretQuestionAnswer.SecretQuestionAnswerBuilder();
   }

   @SuppressFBWarnings(justification = "generated code")
   public String getQuestionId() {
      return this.questionId;
   }

   @SuppressFBWarnings(justification = "generated code")
   public String getAnswer() {
      return this.answer;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setQuestionId(String questionId) {
      this.questionId = questionId;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setAnswer(String answer) {
      this.answer = answer;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof SecretQuestionAnswer other)) {
         return false;
      } else if (!other.canEqual(this)) {
         return false;
      } else {
         Object this$questionId = this.questionId;
         Object other$questionId = other.questionId;
         if (this$questionId == null ? other$questionId == null : this$questionId.equals(other$questionId)) {
            Object this$answer = this.answer;
            Object other$answer = other.answer;
            return this$answer == null ? other$answer == null : this$answer.equals(other$answer);
         } else {
            return false;
         }
      }
   }

   @SuppressFBWarnings(justification = "generated code")
   protected boolean canEqual(Object other) {
      return other instanceof SecretQuestionAnswer;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $questionId = this.questionId;
      result = result * 59 + ($questionId == null ? 43 : $questionId.hashCode());
      Object $answer = this.answer;
      return result * 59 + ($answer == null ? 43 : $answer.hashCode());
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "SecretQuestionAnswer(questionId=" + this.getQuestionId() + ", answer=" + this.getAnswer() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public SecretQuestionAnswer() {
   }

   @SuppressFBWarnings(justification = "generated code")
   public SecretQuestionAnswer(String questionId, String answer) {
      this.questionId = questionId;
      this.answer = answer;
   }

   @SuppressFBWarnings(justification = "generated code")
   public static class SecretQuestionAnswerBuilder {
      @SuppressFBWarnings(justification = "generated code")
      private String questionId;
      @SuppressFBWarnings(justification = "generated code")
      private String answer;

      @SuppressFBWarnings(justification = "generated code")
      SecretQuestionAnswerBuilder() {
      }

      @SuppressFBWarnings(justification = "generated code")
      public SecretQuestionAnswer.SecretQuestionAnswerBuilder questionId(String questionId) {
         this.questionId = questionId;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public SecretQuestionAnswer.SecretQuestionAnswerBuilder answer(String answer) {
         this.answer = answer;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public SecretQuestionAnswer build() {
         return new SecretQuestionAnswer(this.questionId, this.answer);
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "SecretQuestionAnswer.SecretQuestionAnswerBuilder(questionId=" + this.questionId + ", answer=" + this.answer + ")";
      }
   }
}
