Package com.sap.ai.sdk.grounding.model
Class DataRepositories
java.lang.Object
com.sap.ai.sdk.grounding.model.DataRepositories
DataRepositories
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DataRepositories. -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem(DataRepository resourcesItem) Add one resources instance to thisDataRepositories.Set the count of thisDataRepositoriesinstance and return the same instance.static DataRepositories.Buildercreate()Create a type-safe, fluent-api builder object to construct a newDataRepositoriesinstance with all required arguments.booleangetCount()Get countgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDataRepositories.Get resourcesinthashCode()resources(List<DataRepository> resources) Set the resources of thisDataRepositoriesinstance and return the same instance.voidSet the count of thisDataRepositoriesinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDataRepositoriesinstance.voidsetResources(List<DataRepository> resources) Set the resources of thisDataRepositoriesinstance.toMap()Get the value of all properties of thisDataRepositoriesinstance including unrecognized properties.toString()
-
Constructor Details
-
DataRepositories
protected DataRepositories()Default constructor for DataRepositories.
-
-
Method Details
-
count
Set the count of thisDataRepositoriesinstance and return the same instance.- Parameters:
count- The count of thisDataRepositories- Returns:
- The same instance of this
DataRepositoriesclass
-
getCount
Get count- Returns:
- count The count of this
DataRepositoriesinstance.
-
setCount
Set the count of thisDataRepositoriesinstance.- Parameters:
count- The count of thisDataRepositories
-
resources
Set the resources of thisDataRepositoriesinstance and return the same instance.- Parameters:
resources- The resources of thisDataRepositories- Returns:
- The same instance of this
DataRepositoriesclass
-
addResourcesItem
Add one resources instance to thisDataRepositories.- Parameters:
resourcesItem- The resources that should be added- Returns:
- The same instance of type
DataRepositories
-
getResources
Get resources- Returns:
- resources The resources of this
DataRepositoriesinstance.
-
setResources
Set the resources of thisDataRepositoriesinstance.- Parameters:
resources- The resources of thisDataRepositories
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDataRepositories.- 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 thisDataRepositoriesinstance.- 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 thisDataRepositoriesinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDataRepositoriesinstance. 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 newDataRepositoriesinstance with all required arguments.
-
toMap()instead.