package com.airlock.iam.flow.shared.domain.model.devicetoken;

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

public final class CheckDeviceTokenJwtRequest {
   private final String username;
   private final String jwt;

   public static CheckDeviceTokenJwtRequest.CheckDeviceTokenJwtRequestBuilder builder(String username, String jwt) {
      return new CheckDeviceTokenJwtRequest(username, jwt).toBuilder();
   }

   @SuppressFBWarnings(justification = "generated code")
   public CheckDeviceTokenJwtRequest.CheckDeviceTokenJwtRequestBuilder toBuilder() {
      return new CheckDeviceTokenJwtRequest.CheckDeviceTokenJwtRequestBuilder().username(this.username).jwt(this.jwt);
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "CheckDeviceTokenJwtRequest(username=" + this.getUsername() + ", jwt=" + this.getJwt() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public CheckDeviceTokenJwtRequest(String username, String jwt) {
      this.username = username;
      this.jwt = jwt;
   }

   @SuppressFBWarnings(justification = "generated code")
   public static class CheckDeviceTokenJwtRequestBuilder {
      @SuppressFBWarnings(justification = "generated code")
      private String username;
      @SuppressFBWarnings(justification = "generated code")
      private String jwt;

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

      @SuppressFBWarnings(justification = "generated code")
      public CheckDeviceTokenJwtRequest.CheckDeviceTokenJwtRequestBuilder username(String username) {
         this.username = username;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public CheckDeviceTokenJwtRequest.CheckDeviceTokenJwtRequestBuilder jwt(String jwt) {
         this.jwt = jwt;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public CheckDeviceTokenJwtRequest build() {
         return new CheckDeviceTokenJwtRequest(this.username, this.jwt);
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "CheckDeviceTokenJwtRequest.CheckDeviceTokenJwtRequestBuilder(username=" + this.username + ", jwt=" + this.jwt + ")";
      }
   }
}
