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

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

public final class MetricsParameters {
   private final int port;

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      return result * 59 + this.port;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public MetricsParameters(int port) {
      this.port = port;
   }

   @SuppressFBWarnings(justification = "generated code")
   public int getPort() {
      return this.port;
   }
}
