package com.airlock.iam.apipolicyservice.infrastructure.transfer.response;

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

public final class ApiPolicyServicePlanUsageData {
   private final Integer rateLimit;

   public ApiPolicyServicePlanUsageData() {
      this.rateLimit = null;
   }

   @SuppressFBWarnings(justification = "generated code")
   public Integer getRateLimit() {
      return this.rateLimit;
   }

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   public ApiPolicyServicePlanUsageData(Integer rateLimit) {
      this.rateLimit = rateLimit;
   }
}
