Class InputFilteringConfig

java.lang.Object
com.sap.ai.sdk.orchestration.model.InputFilteringConfig

public class InputFilteringConfig extends Object
InputFilteringConfig
  • Constructor Details

    • InputFilteringConfig

      protected InputFilteringConfig()
      Default constructor for InputFilteringConfig.
  • Method Details

    • filters

      @Nonnull public InputFilteringConfig filters(@Nonnull List<InputFilterConfig> filters)
      Set the filters of this InputFilteringConfig instance and return the same instance.
      Parameters:
      filters - Configuration for content filtering services that should be used for the given filtering step (input filtering).
      Returns:
      The same instance of this InputFilteringConfig class
    • addFiltersItem

      @Nonnull public InputFilteringConfig addFiltersItem(@Nonnull InputFilterConfig filtersItem)
      Add one filters instance to this InputFilteringConfig.
      Parameters:
      filtersItem - The filters that should be added
      Returns:
      The same instance of type InputFilteringConfig
    • getFilters

      @Nonnull public List<InputFilterConfig> getFilters()
      Configuration for content filtering services that should be used for the given filtering step (input filtering).
      Returns:
      filters The filters of this InputFilteringConfig instance.
    • setFilters

      public void setFilters(@Nonnull List<InputFilterConfig> filters)
      Set the filters of this InputFilteringConfig instance.
      Parameters:
      filters - Configuration for content filtering services that should be used for the given filtering step (input filtering).
    • getCustomFieldNames

      @Nonnull public Set<String> getCustomFieldNames()
      Get the names of the unrecognizable properties of the InputFilteringConfig.
      Returns:
      The set of properties names
    • getCustomField

      @Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException
      Deprecated.
      Use toMap() instead.
      Get the value of an unrecognizable property of this InputFilteringConfig instance.
      Parameters:
      name - The name of the property
      Returns:
      The value of the property
      Throws:
      NoSuchElementException - If no property with the given name could be found.
    • toMap

      @Nonnull public Map<String,Object> toMap()
      Get the value of all properties of this InputFilteringConfig instance including unrecognized properties.
      Returns:
      The map of all properties
    • setCustomField

      public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue)
      Set an unrecognizable property of this InputFilteringConfig instance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.
      Parameters:
      customFieldName - The name of the property
      customFieldValue - The value of the property
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • create

      public static InputFilteringConfig.Builder create()
      Create a type-safe, fluent-api builder object to construct a new InputFilteringConfig instance with all required arguments.