package com.airlock.iam.transactionapproval.domain.model.cronto;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jakarta.annotation.Nullable;

public final class CrontoMessageProviderKeys {
   @Nullable
   private final String amountLabelKey;
   @Nullable
   private final String amountParameterName;
   @Nullable
   private final String currencyParameterName;

   @SuppressFBWarnings(justification = "generated code")
   CrontoMessageProviderKeys(@Nullable String amountLabelKey, @Nullable String amountParameterName, @Nullable String currencyParameterName) {
      this.amountLabelKey = amountLabelKey;
      this.amountParameterName = amountParameterName;
      this.currencyParameterName = currencyParameterName;
   }

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

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

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "CrontoMessageProviderKeys(amountLabelKey="
         + this.getAmountLabelKey()
         + ", amountParameterName="
         + this.getAmountParameterName()
         + ", currencyParameterName="
         + this.getCurrencyParameterName()
         + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public static class CrontoMessageProviderKeysBuilder {
      @SuppressFBWarnings(justification = "generated code")
      private String amountLabelKey;
      @SuppressFBWarnings(justification = "generated code")
      private String amountParameterName;
      @SuppressFBWarnings(justification = "generated code")
      private String currencyParameterName;

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

      @SuppressFBWarnings(justification = "generated code")
      public CrontoMessageProviderKeys.CrontoMessageProviderKeysBuilder amountLabelKey(@Nullable String amountLabelKey) {
         this.amountLabelKey = amountLabelKey;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public CrontoMessageProviderKeys.CrontoMessageProviderKeysBuilder amountParameterName(@Nullable String amountParameterName) {
         this.amountParameterName = amountParameterName;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public CrontoMessageProviderKeys.CrontoMessageProviderKeysBuilder currencyParameterName(@Nullable String currencyParameterName) {
         this.currencyParameterName = currencyParameterName;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public CrontoMessageProviderKeys build() {
         return new CrontoMessageProviderKeys(this.amountLabelKey, this.amountParameterName, this.currencyParameterName);
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "CrontoMessageProviderKeys.CrontoMessageProviderKeysBuilder(amountLabelKey="
            + this.amountLabelKey
            + ", amountParameterName="
            + this.amountParameterName
            + ", currencyParameterName="
            + this.currencyParameterName
            + ")";
      }
   }
}
