Class CreateScoreConfigRequest

java.lang.Object
com.ants.platform.client.resources.scoreconfigs.types.CreateScoreConfigRequest

public final class CreateScoreConfigRequest extends Object
  • Method Details

    • getName

      public String getName()
    • getDataType

      public ScoreDataType getDataType()
    • getCategories

      public Optional<List<ConfigCategory>> getCategories()
      Returns:
      Configure custom categories for categorical scores. Pass a list of objects with label and value properties. Categories are autogenerated for boolean configs and cannot be passed
    • getMinValue

      public Optional<Double> getMinValue()
      Returns:
      Configure a minimum value for numerical scores. If not set, the minimum value defaults to -∞
    • getMaxValue

      public Optional<Double> getMaxValue()
      Returns:
      Configure a maximum value for numerical scores. If not set, the maximum value defaults to +∞
    • getDescription

      public Optional<String> getDescription()
      Returns:
      Description is shown across the ANTS Platform UI and can be used to e.g. explain the config categories in detail, why a numeric range was set, or provide additional context on config name or usage
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static CreateScoreConfigRequest.NameStage builder()