Class SearchDocumentKeyValueListPair
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.SearchDocumentKeyValueListPair
SearchDocumentKeyValueListPair
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SearchDocumentKeyValueListPair. -
Method Summary
Modifier and TypeMethodDescriptionaddSelectModeItem(SearchSelectOptionEnum selectModeItem) Add one selectMode instance to thisSearchDocumentKeyValueListPair.addValueItem(String valueItem) Add one value instance to thisSearchDocumentKeyValueListPair.create()Create a type-safe, fluent-api builder object to construct a newSearchDocumentKeyValueListPairinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSearchDocumentKeyValueListPair.getKey()Get keySelect mode for search filtersgetValue()Get valueinthashCode()Set the key of thisSearchDocumentKeyValueListPairinstance and return the same instance.selectMode(List<SearchSelectOptionEnum> selectMode) Set the selectMode of thisSearchDocumentKeyValueListPairinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSearchDocumentKeyValueListPairinstance.voidSet the key of thisSearchDocumentKeyValueListPairinstance.voidsetSelectMode(List<SearchSelectOptionEnum> selectMode) Set the selectMode of thisSearchDocumentKeyValueListPairinstance.voidSet the value of thisSearchDocumentKeyValueListPairinstance.toMap()Get the value of all properties of thisSearchDocumentKeyValueListPairinstance including unrecognized properties.toString()Set the value of thisSearchDocumentKeyValueListPairinstance and return the same instance.
-
Constructor Details
-
SearchDocumentKeyValueListPair
protected SearchDocumentKeyValueListPair()Default constructor for SearchDocumentKeyValueListPair.
-
-
Method Details
-
key
Set the key of thisSearchDocumentKeyValueListPairinstance and return the same instance.- Parameters:
key- The key of thisSearchDocumentKeyValueListPair- Returns:
- The same instance of this
SearchDocumentKeyValueListPairclass
-
getKey
Get key- Returns:
- key The key of this
SearchDocumentKeyValueListPairinstance.
-
setKey
Set the key of thisSearchDocumentKeyValueListPairinstance.- Parameters:
key- The key of thisSearchDocumentKeyValueListPair
-
value
Set the value of thisSearchDocumentKeyValueListPairinstance and return the same instance.- Parameters:
value- The value of thisSearchDocumentKeyValueListPair- Returns:
- The same instance of this
SearchDocumentKeyValueListPairclass
-
addValueItem
Add one value instance to thisSearchDocumentKeyValueListPair.- Parameters:
valueItem- The value that should be added- Returns:
- The same instance of type
SearchDocumentKeyValueListPair
-
getValue
Get value- Returns:
- value The value of this
SearchDocumentKeyValueListPairinstance.
-
setValue
Set the value of thisSearchDocumentKeyValueListPairinstance.- Parameters:
value- The value of thisSearchDocumentKeyValueListPair
-
selectMode
@Nonnull public SearchDocumentKeyValueListPair selectMode(@Nullable List<SearchSelectOptionEnum> selectMode) Set the selectMode of thisSearchDocumentKeyValueListPairinstance and return the same instance.- Parameters:
selectMode- Select mode for search filters- Returns:
- The same instance of this
SearchDocumentKeyValueListPairclass
-
addSelectModeItem
@Nonnull public SearchDocumentKeyValueListPair addSelectModeItem(@Nonnull SearchSelectOptionEnum selectModeItem) Add one selectMode instance to thisSearchDocumentKeyValueListPair.- Parameters:
selectModeItem- The selectMode that should be added- Returns:
- The same instance of type
SearchDocumentKeyValueListPair
-
getSelectMode
Select mode for search filters- Returns:
- selectMode The selectMode of this
SearchDocumentKeyValueListPairinstance.
-
setSelectMode
Set the selectMode of thisSearchDocumentKeyValueListPairinstance.- Parameters:
selectMode- Select mode for search filters
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSearchDocumentKeyValueListPair.- 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 thisSearchDocumentKeyValueListPairinstance.- 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 thisSearchDocumentKeyValueListPairinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSearchDocumentKeyValueListPairinstance. 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 newSearchDocumentKeyValueListPairinstance with all required arguments.
-
toMap()instead.