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

import com.fasterxml.jackson.annotation.JsonProperty;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;

public class OAuth2ParData {
   @JsonProperty("request_uri")
   @Schema(description = "The request URI corresponding to the authorization request posted.")
   private String requestUri;
   @JsonProperty("expires_in")
   @Schema(description = "A JSON number that represents the lifetime of the request URI in seconds as a positive integer.")
   private long expiresIn;

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

   @SuppressFBWarnings(justification = "generated code")
   public long getExpiresIn() {
      return this.expiresIn;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public void setExpiresIn(long expiresIn) {
      this.expiresIn = expiresIn;
   }

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

         if (this.expiresIn != other.expiresIn) {
            return false;
         }

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OAuth2ParData(requestUri=" + this.getRequestUri() + ", expiresIn=" + this.getExpiresIn() + ")";
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public OAuth2ParData(String requestUri, long expiresIn) {
      this.requestUri = requestUri;
      this.expiresIn = expiresIn;
   }
}
