package com.airlock.iam.application.parameters.domain.model;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.nio.file.Path;

public final class SecureStore {
   private final String type;
   private final Path file;
   private final String password;

   @Override
   public String toString() {
      return this.file.toString();
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public Path file() {
      return this.file;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public SecureStore(String type, Path file, String password) {
      this.type = type;
      this.file = file;
      this.password = password;
   }

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

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