package com.l7tech.gateway.pm2.graphql.beans.entity;

import io.leangen.graphql.annotations.GraphQLQuery;

public class PropertyValidationDTO {
   private final boolean a;
   private final Integer b;
   private final Integer c;
   private final String d;
   private final String e;

   public PropertyValidationDTO(boolean var1, Integer var2, Integer var3, String var4, String var5) {
      this.a = var1;
      this.b = var2;
      this.c = var3;
      this.d = var4;
      this.e = var5;
   }

   @GraphQLQuery(name = "required", description = "Whether the property is required")
   public boolean isRequired() {
      return this.a;
   }

   @GraphQLQuery(name = "minValue", description = "Minimum value (for numeric properties)")
   public Integer getMinValue() {
      return this.b;
   }

   @GraphQLQuery(name = "maxValue", description = "Maximum value (for numeric properties)")
   public Integer getMaxValue() {
      return this.c;
   }

   @GraphQLQuery(name = "pattern", description = "Regex pattern for validation (for string properties)")
   public String getPattern() {
      return this.d;
   }

   @GraphQLQuery(name = "errorMessage", description = "Custom error message for validation failures")
   public String getErrorMessage() {
      return this.e;
   }
}
