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 match.replacement- the replacement string.- Returns:
- a new
DpiMaskinginstance.
-