package com.airlock.iam.publicselfservice.application.configuration.selection.condition;

import com.airlock.iam.flow.api.application.configuration.selection.FlowConditionConfig;
import com.airlock.iam.plugin.api.annotation.config.Plugin;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

@Plugin(
   description = "Condition that is true, if the identified user is allowed to perform a public self-service (i.e. does not violate any of the configured restrictions).",
   displayName = "Public Self-Service Allowed Condition"
)
public class PublicSelfServiceAllowedConditionConfig implements FlowConditionConfig {
   @SuppressFBWarnings(justification = "generated code")
   public static PublicSelfServiceAllowedConditionConfig.PublicSelfServiceAllowedConditionConfigBuilder builder() {
      return new PublicSelfServiceAllowedConditionConfig.PublicSelfServiceAllowedConditionConfigBuilder();
   }

   @SuppressFBWarnings(justification = "generated code")
   public static class PublicSelfServiceAllowedConditionConfigBuilder {
      @SuppressFBWarnings(justification = "generated code")
      PublicSelfServiceAllowedConditionConfigBuilder() {
      }

      @SuppressFBWarnings(justification = "generated code")
      public PublicSelfServiceAllowedConditionConfig build() {
         return new PublicSelfServiceAllowedConditionConfig();
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "PublicSelfServiceAllowedConditionConfig.PublicSelfServiceAllowedConditionConfigBuilder()";
      }
   }
}
