package com.airlock.iam.oauth2.domain.service.tokenexchange.scope;

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

public record OAuth2TokenExchangeScopeHandlerSettings(boolean emptyScopeAllowed) {
   @SuppressFBWarnings(justification = "generated code")
   public static OAuth2TokenExchangeScopeHandlerSettings.OAuth2TokenExchangeScopeHandlerSettingsBuilder builder() {
      return new OAuth2TokenExchangeScopeHandlerSettings.OAuth2TokenExchangeScopeHandlerSettingsBuilder();
   }

   @SuppressFBWarnings(justification = "generated code")
   public static class OAuth2TokenExchangeScopeHandlerSettingsBuilder {
      @SuppressFBWarnings(justification = "generated code")
      private boolean emptyScopeAllowed;

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

      @SuppressFBWarnings(justification = "generated code")
      public OAuth2TokenExchangeScopeHandlerSettings.OAuth2TokenExchangeScopeHandlerSettingsBuilder emptyScopeAllowed(boolean emptyScopeAllowed) {
         this.emptyScopeAllowed = emptyScopeAllowed;
         return this;
      }

      @SuppressFBWarnings(justification = "generated code")
      public OAuth2TokenExchangeScopeHandlerSettings build() {
         return new OAuth2TokenExchangeScopeHandlerSettings(this.emptyScopeAllowed);
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "OAuth2TokenExchangeScopeHandlerSettings.OAuth2TokenExchangeScopeHandlerSettingsBuilder(emptyScopeAllowed=" + this.emptyScopeAllowed + ")";
      }
   }
}
