Package com.sap.ai.sdk.grounding.model
Class ListConfigurationDocuments
java.lang.Object
com.sap.ai.sdk.grounding.model.ListConfigurationDocuments
ListConfigurationDocuments
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ListConfigurationDocuments. -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem(ConfigurationDocument resourcesItem) Add one resources instance to thisListConfigurationDocuments.Set the count of thisListConfigurationDocumentsinstance and return the same instance.static ListConfigurationDocumentscreate()Create a newListConfigurationDocumentsinstance.booleangetCount()Total number of documents returned.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theListConfigurationDocuments.List of document objects.inthashCode()resources(List<ConfigurationDocument> resources) Set the resources of thisListConfigurationDocumentsinstance and return the same instance.voidSet the count of thisListConfigurationDocumentsinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisListConfigurationDocumentsinstance.voidsetResources(List<ConfigurationDocument> resources) Set the resources of thisListConfigurationDocumentsinstance.toMap()Get the value of all properties of thisListConfigurationDocumentsinstance including unrecognized properties.toString()
-
Constructor Details
-
ListConfigurationDocuments
protected ListConfigurationDocuments()Default constructor for ListConfigurationDocuments.
-
-
Method Details
-
count
Set the count of thisListConfigurationDocumentsinstance and return the same instance.- Parameters:
count- Total number of documents returned.- Returns:
- The same instance of this
ListConfigurationDocumentsclass
-
getCount
Total number of documents returned.- Returns:
- count The count of this
ListConfigurationDocumentsinstance.
-
setCount
Set the count of thisListConfigurationDocumentsinstance.- Parameters:
count- Total number of documents returned.
-
resources
@Nonnull public ListConfigurationDocuments resources(@Nullable List<ConfigurationDocument> resources) Set the resources of thisListConfigurationDocumentsinstance and return the same instance.- Parameters:
resources- List of document objects. It will be empty array if no records found.- Returns:
- The same instance of this
ListConfigurationDocumentsclass
-
addResourcesItem
@Nonnull public ListConfigurationDocuments addResourcesItem(@Nonnull ConfigurationDocument resourcesItem) Add one resources instance to thisListConfigurationDocuments.- Parameters:
resourcesItem- The resources that should be added- Returns:
- The same instance of type
ListConfigurationDocuments
-
getResources
List of document objects. It will be empty array if no records found.- Returns:
- resources The resources of this
ListConfigurationDocumentsinstance.
-
setResources
Set the resources of thisListConfigurationDocumentsinstance.- Parameters:
resources- List of document objects. It will be empty array if no records found.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theListConfigurationDocuments.- 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 thisListConfigurationDocumentsinstance.- 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 thisListConfigurationDocumentsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisListConfigurationDocumentsinstance. 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 newListConfigurationDocumentsinstance. No arguments are required.
-
toMap()instead.