Class DPICustomEntity
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.DPICustomEntity
- All Implemented Interfaces:
DPIEntityConfig
DPICustomEntity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DPICustomEntity. -
Method Summary
Modifier and TypeMethodDescriptionstatic DPICustomEntity.Buildercreate()Create a type-safe, fluent-api builder object to construct a newDPICustomEntityinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDPICustomEntity.getRegex()Regular expression to match the entityGet replacementStrategyinthashCode()Set the regex of thisDPICustomEntityinstance and return the same instance.replacementStrategy(DPIMethodConstant replacementStrategy) Set the replacementStrategy of thisDPICustomEntityinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDPICustomEntityinstance.voidSet the regex of thisDPICustomEntityinstance.voidsetReplacementStrategy(DPIMethodConstant replacementStrategy) Set the replacementStrategy of thisDPICustomEntityinstance.toMap()Get the value of all properties of thisDPICustomEntityinstance including unrecognized properties.toString()
-
Constructor Details
-
DPICustomEntity
protected DPICustomEntity()Default constructor for DPICustomEntity.
-
-
Method Details
-
regex
Set the regex of thisDPICustomEntityinstance and return the same instance.- Parameters:
regex- Regular expression to match the entity- Returns:
- The same instance of this
DPICustomEntityclass
-
getRegex
Regular expression to match the entity- Returns:
- regex The regex of this
DPICustomEntityinstance.
-
setRegex
Set the regex of thisDPICustomEntityinstance.- Parameters:
regex- Regular expression to match the entity
-
replacementStrategy
Set the replacementStrategy of thisDPICustomEntityinstance and return the same instance.- Parameters:
replacementStrategy- The replacementStrategy of thisDPICustomEntity- Returns:
- The same instance of this
DPICustomEntityclass
-
getReplacementStrategy
Get replacementStrategy- Returns:
- replacementStrategy The replacementStrategy of this
DPICustomEntityinstance.
-
setReplacementStrategy
Set the replacementStrategy of thisDPICustomEntityinstance.- Parameters:
replacementStrategy- The replacementStrategy of thisDPICustomEntity
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDPICustomEntity.- 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 thisDPICustomEntityinstance.- 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 thisDPICustomEntityinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDPICustomEntityinstance. 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 newDPICustomEntityinstance with all required arguments.
-
toMap()instead.