Package com.sap.ai.sdk.orchestration

# Class DpiMasking.Builder

java.lang.Object
com.sap.ai.sdk.orchestration.DpiMasking.Builder

Enclosing class:
  `DpiMasking`

public static class DpiMasking.Builder extends Object
Builder for creating DPI masking configurations. Allows specifying which entity types should be masked in the input text.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DpiMasking`
  `withEntities(DPIEntities entity, DPIEntities... entities)`
  Specifies which entities should be masked in the input text.
  `DpiMasking`
  `withRegex(String regex, String replacement)`
  Adds a custom regex pattern for masking.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### withEntities

    @Nonnull public DpiMasking withEntities(@Nonnull DPIEntities entity, @Nonnull DPIEntities... entities)
    Specifies which entities should be masked in the input text.
    Parameters:
      `entity` - An entity type to mask (required)
      `entities` - Additional entity types to mask (optional)
    Returns:
      A new `DpiMasking` instance
    See Also:
      - `DPIEntities`

  - ### withRegex

    @Nonnull public DpiMasking withRegex(@Nonnull String regex, @Nonnull String replacement)
    Adds a custom regex pattern for masking.
    Parameters:
      `regex` - The regex pattern to match
      `replacement` - The replacement string
    Returns:
      A new `DpiMasking` instance