package com.airlock.iam.admin.infrastructure.transfer.request;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

public class LicenseUploadRequest {
   @NotNull
   @Schema(description = "The license key.")
   private String license;

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

   @SuppressFBWarnings(justification = "generated code")
   public void setLicense(String license) {
      this.license = license;
   }

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

         Object this$license = this.license;
         Object other$license = other.license;
         return this$license == null ? other$license == null : this$license.equals(other$license);
      }
   }

   @SuppressFBWarnings(justification = "generated code")
   protected boolean canEqual(Object other) {
      return other instanceof LicenseUploadRequest;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   public LicenseUploadRequest() {
   }

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