Package com.sap.ai.sdk.grounding.model
Class ResultsInner2
java.lang.Object
com.sap.ai.sdk.grounding.model.ResultsInner2
ResultsInner2
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResultsItem(DataRepositorySearchResult resultsItem) Add one results instance to thisResultsInner2.static ResultsInner2.Buildercreate()Create a type-safe, fluent-api builder object to construct a newResultsInner2instance with all required arguments.booleanerror(PerFilterSearchResultError error) Set the error of thisResultsInner2instance and return the same instance.Set the filterId of thisResultsInner2instance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theResultsInner2.getError()Get errorGet filterIdList of returned results.inthashCode()results(List<DataRepositorySearchResult> results) Set the results of thisResultsInner2instance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisResultsInner2instance.voidSet the error of thisResultsInner2instance.voidsetFilterId(String filterId) Set the filterId of thisResultsInner2instance.voidsetResults(List<DataRepositorySearchResult> results) Set the results of thisResultsInner2instance.toMap()Get the value of all properties of thisResultsInner2instance including unrecognized properties.toString()
-
Constructor Details
-
ResultsInner2
protected ResultsInner2()Default constructor for ResultsInner2.
-
-
Method Details
-
filterId
Set the filterId of thisResultsInner2instance and return the same instance.- Parameters:
filterId- The filterId of thisResultsInner2- Returns:
- The same instance of this
ResultsInner2class
-
getFilterId
Get filterId- Returns:
- filterId The filterId of this
ResultsInner2instance.
-
setFilterId
Set the filterId of thisResultsInner2instance.- Parameters:
filterId- The filterId of thisResultsInner2
-
results
Set the results of thisResultsInner2instance and return the same instance.- Parameters:
results- List of returned results.- Returns:
- The same instance of this
ResultsInner2class
-
addResultsItem
Add one results instance to thisResultsInner2.- Parameters:
resultsItem- The results that should be added- Returns:
- The same instance of type
ResultsInner2
-
getResults
List of returned results.- Returns:
- results The results of this
ResultsInner2instance.
-
setResults
Set the results of thisResultsInner2instance.- Parameters:
results- List of returned results.
-
error
Set the error of thisResultsInner2instance and return the same instance.- Parameters:
error- The error of thisResultsInner2- Returns:
- The same instance of this
ResultsInner2class
-
getError
Get error- Returns:
- error The error of this
ResultsInner2instance.
-
setError
Set the error of thisResultsInner2instance.- Parameters:
error- The error of thisResultsInner2
-
getCustomFieldNames
Get the names of the unrecognizable properties of theResultsInner2.- 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 thisResultsInner2instance.- 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 thisResultsInner2instance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisResultsInner2instance. 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 newResultsInner2instance with all required arguments.
-
toMap()instead.