Package com.sap.ai.sdk.orchestration
Class DpiMasking.Builder
java.lang.Object
com.sap.ai.sdk.orchestration.DpiMasking.Builder
- Enclosing class:
DpiMasking
Builder for creating DPI masking configurations. Allows specifying which entity types should be
masked in the input text.
-
Method Summary
Modifier and TypeMethodDescriptionwithEntities(DPIEntities entity, DPIEntities... entities) Specifies which entities should be masked in the input text.Adds a custom regex pattern for masking.
-
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
DpiMaskinginstance - See Also:
-
withRegex
Adds a custom regex pattern for masking.- Parameters:
regex- The regex pattern to matchreplacement- The replacement string- Returns:
- A new
DpiMaskinginstance
-