Class DPIMethodConstant
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.DPIMethodConstant
- All Implemented Interfaces:
DPIStandardEntityReplacementStrategy
Replaces the entity with the specified value followed by an incrementing number
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumGets or Sets method -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DPIMethodConstant. -
Method Summary
Modifier and TypeMethodDescriptionstatic DPIMethodConstant.Buildercreate()Create a type-safe, fluent-api builder object to construct a newDPIMethodConstantinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDPIMethodConstant.Get methodgetValue()Value to be used for replacementinthashCode()method(DPIMethodConstant.MethodEnum method) Set the method of thisDPIMethodConstantinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDPIMethodConstantinstance.voidSet the method of thisDPIMethodConstantinstance.voidSet the value of thisDPIMethodConstantinstance.toMap()Get the value of all properties of thisDPIMethodConstantinstance including unrecognized properties.toString()Set the value of thisDPIMethodConstantinstance and return the same instance.
-
Constructor Details
-
DPIMethodConstant
protected DPIMethodConstant()Default constructor for DPIMethodConstant.
-
-
Method Details
-
method
Set the method of thisDPIMethodConstantinstance and return the same instance.- Parameters:
method- The method of thisDPIMethodConstant- Returns:
- The same instance of this
DPIMethodConstantclass
-
getMethod
Get method- Returns:
- method The method of this
DPIMethodConstantinstance.
-
setMethod
Set the method of thisDPIMethodConstantinstance.- Parameters:
method- The method of thisDPIMethodConstant
-
value
Set the value of thisDPIMethodConstantinstance and return the same instance.- Parameters:
value- Value to be used for replacement- Returns:
- The same instance of this
DPIMethodConstantclass
-
getValue
Value to be used for replacement- Returns:
- value The value of this
DPIMethodConstantinstance.
-
setValue
Set the value of thisDPIMethodConstantinstance.- Parameters:
value- Value to be used for replacement
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDPIMethodConstant.- 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 thisDPIMethodConstantinstance.- 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 thisDPIMethodConstantinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDPIMethodConstantinstance. 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 newDPIMethodConstantinstance with all required arguments.
-
toMap()instead.