package com.airlock.iam.admin.application.service.token.vasco;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Optional;

public final class VascoOtpAssignParameters {
   private final String userId;
   private final VascoOtpDeviceId deviceId;
   private final Optional<String> additionalInformation;
   private final Optional<String> comment;

   public boolean hasAdditionalInformation() {
      return this.additionalInformation.isPresent();
   }

   public boolean hasComment() {
      return this.comment.isPresent();
   }

   @SuppressFBWarnings(justification = "generated code")
   public VascoOtpAssignParameters(String userId, VascoOtpDeviceId deviceId, Optional<String> additionalInformation, Optional<String> comment) {
      this.userId = userId;
      this.deviceId = deviceId;
      this.additionalInformation = additionalInformation;
      this.comment = comment;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public VascoOtpDeviceId getDeviceId() {
      return this.deviceId;
   }

   @SuppressFBWarnings(justification = "generated code")
   public Optional<String> getAdditionalInformation() {
      return this.additionalInformation;
   }

   @SuppressFBWarnings(justification = "generated code")
   public Optional<String> getComment() {
      return this.comment;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof VascoOtpAssignParameters other)) {
         return false;
      } else {
         Object this$userId = this.userId;
         Object other$userId = other.userId;
         if (this$userId == null ? other$userId == null : this$userId.equals(other$userId)) {
            Object this$deviceId = this.deviceId;
            Object other$deviceId = other.deviceId;
            if (this$deviceId == null ? other$deviceId == null : this$deviceId.equals(other$deviceId)) {
               Object this$additionalInformation = this.additionalInformation;
               Object other$additionalInformation = other.additionalInformation;
               if (this$additionalInformation == null ? other$additionalInformation == null : this$additionalInformation.equals(other$additionalInformation)) {
                  Object this$comment = this.comment;
                  Object other$comment = other.comment;
                  return this$comment == null ? other$comment == null : this$comment.equals(other$comment);
               } else {
                  return false;
               }
            } else {
               return false;
            }
         } else {
            return false;
         }
      }
   }

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "VascoOtpAssignParameters(userId="
         + this.getUserId()
         + ", deviceId="
         + this.getDeviceId()
         + ", additionalInformation="
         + this.getAdditionalInformation()
         + ", comment="
         + this.getComment()
         + ")";
   }
}
