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

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

public final class ClientSslConnectionParameters {
   private final SecureStore trustStore;

   public Optional<SecureStore> trustStore() {
      return Optional.ofNullable(this.trustStore);
   }

   @SuppressFBWarnings(justification = "generated code")
   public ClientSslConnectionParameters(SecureStore trustStore) {
      this.trustStore = trustStore;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "ClientSslConnectionParameters(trustStore=" + this.trustStore() + ")";
   }
}
