Package com.sap.ai.sdk.grounding.model
Class DocumentUpdateRequest
java.lang.Object
com.sap.ai.sdk.grounding.model.DocumentUpdateRequest
An update request containing one or more documents to update existing documents in a collection
by ID.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DocumentUpdateRequest. -
Method Summary
Modifier and TypeMethodDescriptionaddDocumentsItem(DocumentInput documentsItem) Add one documents instance to thisDocumentUpdateRequest.create()Create a type-safe, fluent-api builder object to construct a newDocumentUpdateRequestinstance with all required arguments.documents(List<DocumentInput> documents) Set the documents of thisDocumentUpdateRequestinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDocumentUpdateRequest.Get documentsinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDocumentUpdateRequestinstance.voidsetDocuments(List<DocumentInput> documents) Set the documents of thisDocumentUpdateRequestinstance.toMap()Get the value of all properties of thisDocumentUpdateRequestinstance including unrecognized properties.toString()
-
Constructor Details
-
DocumentUpdateRequest
protected DocumentUpdateRequest()Default constructor for DocumentUpdateRequest.
-
-
Method Details
-
documents
Set the documents of thisDocumentUpdateRequestinstance and return the same instance.- Parameters:
documents- The documents of thisDocumentUpdateRequest- Returns:
- The same instance of this
DocumentUpdateRequestclass
-
addDocumentsItem
Add one documents instance to thisDocumentUpdateRequest.- Parameters:
documentsItem- The documents that should be added- Returns:
- The same instance of type
DocumentUpdateRequest
-
getDocuments
Get documents- Returns:
- documents The documents of this
DocumentUpdateRequestinstance.
-
setDocuments
Set the documents of thisDocumentUpdateRequestinstance.- Parameters:
documents- The documents of thisDocumentUpdateRequest
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDocumentUpdateRequest.- 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 thisDocumentUpdateRequestinstance.- 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 thisDocumentUpdateRequestinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDocumentUpdateRequestinstance. 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 newDocumentUpdateRequestinstance with all required arguments.
-
toMap()instead.