Package com.sap.ai.sdk.grounding.model
Class DataRepositoryPerFilterSearchResult
java.lang.Object
com.sap.ai.sdk.grounding.model.DataRepositoryPerFilterSearchResult
DataRepositoryPerFilterSearchResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DataRepositoryPerFilterSearchResult. -
Method Summary
Modifier and TypeMethodDescriptionaddResultsItem(DataRepositorySearchResult resultsItem) Add one results instance to thisDataRepositoryPerFilterSearchResult.create()Create a type-safe, fluent-api builder object to construct a newDataRepositoryPerFilterSearchResultinstance with all required arguments.booleanSet the filterId of thisDataRepositoryPerFilterSearchResultinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDataRepositoryPerFilterSearchResult.Get filterIdList of returned results.inthashCode()results(List<DataRepositorySearchResult> results) Set the results of thisDataRepositoryPerFilterSearchResultinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDataRepositoryPerFilterSearchResultinstance.voidsetFilterId(String filterId) Set the filterId of thisDataRepositoryPerFilterSearchResultinstance.voidsetResults(List<DataRepositorySearchResult> results) Set the results of thisDataRepositoryPerFilterSearchResultinstance.toMap()Get the value of all properties of thisDataRepositoryPerFilterSearchResultinstance including unrecognized properties.toString()
-
Constructor Details
-
DataRepositoryPerFilterSearchResult
protected DataRepositoryPerFilterSearchResult()Default constructor for DataRepositoryPerFilterSearchResult.
-
-
Method Details
-
filterId
Set the filterId of thisDataRepositoryPerFilterSearchResultinstance and return the same instance.- Parameters:
filterId- The filterId of thisDataRepositoryPerFilterSearchResult- Returns:
- The same instance of this
DataRepositoryPerFilterSearchResultclass
-
getFilterId
Get filterId- Returns:
- filterId The filterId of this
DataRepositoryPerFilterSearchResultinstance.
-
setFilterId
Set the filterId of thisDataRepositoryPerFilterSearchResultinstance.- Parameters:
filterId- The filterId of thisDataRepositoryPerFilterSearchResult
-
results
@Nonnull public DataRepositoryPerFilterSearchResult results(@Nullable List<DataRepositorySearchResult> results) Set the results of thisDataRepositoryPerFilterSearchResultinstance and return the same instance.- Parameters:
results- List of returned results.- Returns:
- The same instance of this
DataRepositoryPerFilterSearchResultclass
-
addResultsItem
@Nonnull public DataRepositoryPerFilterSearchResult addResultsItem(@Nonnull DataRepositorySearchResult resultsItem) Add one results instance to thisDataRepositoryPerFilterSearchResult.- Parameters:
resultsItem- The results that should be added- Returns:
- The same instance of type
DataRepositoryPerFilterSearchResult
-
getResults
List of returned results.- Returns:
- results The results of this
DataRepositoryPerFilterSearchResultinstance.
-
setResults
Set the results of thisDataRepositoryPerFilterSearchResultinstance.- Parameters:
results- List of returned results.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDataRepositoryPerFilterSearchResult.- 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 thisDataRepositoryPerFilterSearchResultinstance.- 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 thisDataRepositoryPerFilterSearchResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDataRepositoryPerFilterSearchResultinstance. 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 newDataRepositoryPerFilterSearchResultinstance with all required arguments.
-
toMap()instead.