Class DPIConfig
java.lang.Object
com.sap.ai.sdk.orchestration.model.DPIConfig
DPIConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static enumType of masking method to be used for file inputs.static enumType of masking method to be usedstatic enumType of masking service provider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllowlistItem(String allowlistItem) Add one allowlist instance to thisDPIConfig.addEntitiesItem(DPIEntityConfig entitiesItem) Add one entities instance to thisDPIConfig.Set the allowlist of thisDPIConfiginstance and return the same instance.static DPIConfig.Buildercreate()Create a type-safe, fluent-api builder object to construct a newDPIConfiginstance with all required arguments.entities(List<DPIEntityConfig> entities) Set the entities of thisDPIConfiginstance and return the same instance.booleanList of strings that should not be maskedgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDPIConfig.List of entities to be maskedType of masking method to be used for file inputs.Get maskGroundingInputType of masking method to be usedgetType()Type of masking service providerinthashCode()maskFileInputMethod(DPIConfig.MaskFileInputMethodEnum maskFileInputMethod) Set the maskFileInputMethod of thisDPIConfiginstance and return the same instance.maskGroundingInput(DPIConfigMaskGroundingInput maskGroundingInput) Set the maskGroundingInput of thisDPIConfiginstance and return the same instance.method(DPIConfig.MethodEnum method) Set the method of thisDPIConfiginstance and return the same instance.voidsetAllowlist(List<String> allowlist) Set the allowlist of thisDPIConfiginstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDPIConfiginstance.voidsetEntities(List<DPIEntityConfig> entities) Set the entities of thisDPIConfiginstance.voidsetMaskFileInputMethod(DPIConfig.MaskFileInputMethodEnum maskFileInputMethod) Set the maskFileInputMethod of thisDPIConfiginstance.voidsetMaskGroundingInput(DPIConfigMaskGroundingInput maskGroundingInput) Set the maskGroundingInput of thisDPIConfiginstance.voidsetMethod(DPIConfig.MethodEnum method) Set the method of thisDPIConfiginstance.voidsetType(DPIConfig.TypeEnum type) Set the type of thisDPIConfiginstance.toMap()Get the value of all properties of thisDPIConfiginstance including unrecognized properties.toString()type(DPIConfig.TypeEnum type) Set the type of thisDPIConfiginstance and return the same instance.
-
Constructor Details
-
DPIConfig
protected DPIConfig()Default constructor for DPIConfig.
-
-
Method Details
-
type
Set the type of thisDPIConfiginstance and return the same instance.- Parameters:
type- Type of masking service provider- Returns:
- The same instance of this
DPIConfigclass
-
getType
Type of masking service provider- Returns:
- type The type of this
DPIConfiginstance.
-
setType
Set the type of thisDPIConfiginstance.- Parameters:
type- Type of masking service provider
-
method
Set the method of thisDPIConfiginstance and return the same instance.- Parameters:
method- Type of masking method to be used- Returns:
- The same instance of this
DPIConfigclass
-
getMethod
Type of masking method to be used- Returns:
- method The method of this
DPIConfiginstance.
-
setMethod
Set the method of thisDPIConfiginstance.- Parameters:
method- Type of masking method to be used
-
entities
Set the entities of thisDPIConfiginstance and return the same instance.- Parameters:
entities- List of entities to be masked- Returns:
- The same instance of this
DPIConfigclass
-
addEntitiesItem
Add one entities instance to thisDPIConfig.- Parameters:
entitiesItem- The entities that should be added- Returns:
- The same instance of type
DPIConfig
-
getEntities
List of entities to be masked- Returns:
- entities The entities of this
DPIConfiginstance.
-
setEntities
Set the entities of thisDPIConfiginstance.- Parameters:
entities- List of entities to be masked
-
allowlist
Set the allowlist of thisDPIConfiginstance and return the same instance.- Parameters:
allowlist- List of strings that should not be masked- Returns:
- The same instance of this
DPIConfigclass
-
addAllowlistItem
Add one allowlist instance to thisDPIConfig.- Parameters:
allowlistItem- The allowlist that should be added- Returns:
- The same instance of type
DPIConfig
-
getAllowlist
List of strings that should not be masked- Returns:
- allowlist The allowlist of this
DPIConfiginstance.
-
setAllowlist
Set the allowlist of thisDPIConfiginstance.- Parameters:
allowlist- List of strings that should not be masked
-
maskGroundingInput
@Nonnull public DPIConfig maskGroundingInput(@Nullable DPIConfigMaskGroundingInput maskGroundingInput) Set the maskGroundingInput of thisDPIConfiginstance and return the same instance. -
getMaskGroundingInput
Get maskGroundingInput- Returns:
- maskGroundingInput The maskGroundingInput of this
DPIConfiginstance.
-
setMaskGroundingInput
Set the maskGroundingInput of thisDPIConfiginstance.- Parameters:
maskGroundingInput- The maskGroundingInput of thisDPIConfig
-
maskFileInputMethod
@Nonnull public DPIConfig maskFileInputMethod(@Nullable DPIConfig.MaskFileInputMethodEnum maskFileInputMethod) Set the maskFileInputMethod of thisDPIConfiginstance and return the same instance.- Parameters:
maskFileInputMethod- Type of masking method to be used for file inputs. Required if file inputs are provided.- Returns:
- The same instance of this
DPIConfigclass
-
getMaskFileInputMethod
Type of masking method to be used for file inputs. Required if file inputs are provided.- Returns:
- maskFileInputMethod The maskFileInputMethod of this
DPIConfiginstance.
-
setMaskFileInputMethod
Set the maskFileInputMethod of thisDPIConfiginstance.- Parameters:
maskFileInputMethod- Type of masking method to be used for file inputs. Required if file inputs are provided.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDPIConfig.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisDPIConfiginstance.- 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
Get the value of all properties of thisDPIConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDPIConfiginstance. 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 propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newDPIConfiginstance with all required arguments.
-
toMap()instead.