Package com.sap.ai.sdk.grounding.model
Class DocumentBulkDeleteResponse
java.lang.Object
com.sap.ai.sdk.grounding.model.DocumentBulkDeleteResponse
Response after deleting documents in bulk.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DocumentBulkDeleteResponse. -
Method Summary
Modifier and TypeMethodDescriptionaddDeletedItem(UUID deletedItem) Add one deleted instance to thisDocumentBulkDeleteResponse.addNotFoundItem(UUID notFoundItem) Add one notFound instance to thisDocumentBulkDeleteResponse.create()Create a type-safe, fluent-api builder object to construct a newDocumentBulkDeleteResponseinstance with all required arguments.Set the deleted of thisDocumentBulkDeleteResponseinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDocumentBulkDeleteResponse.List of successfully deleted document IDsList of document IDs that were not foundinthashCode()Set the notFound of thisDocumentBulkDeleteResponseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDocumentBulkDeleteResponseinstance.voidsetDeleted(List<UUID> deleted) Set the deleted of thisDocumentBulkDeleteResponseinstance.voidsetNotFound(List<UUID> notFound) Set the notFound of thisDocumentBulkDeleteResponseinstance.toMap()Get the value of all properties of thisDocumentBulkDeleteResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
DocumentBulkDeleteResponse
protected DocumentBulkDeleteResponse()Default constructor for DocumentBulkDeleteResponse.
-
-
Method Details
-
deleted
Set the deleted of thisDocumentBulkDeleteResponseinstance and return the same instance.- Parameters:
deleted- List of successfully deleted document IDs- Returns:
- The same instance of this
DocumentBulkDeleteResponseclass
-
addDeletedItem
Add one deleted instance to thisDocumentBulkDeleteResponse.- Parameters:
deletedItem- The deleted that should be added- Returns:
- The same instance of type
DocumentBulkDeleteResponse
-
getDeleted
List of successfully deleted document IDs- Returns:
- deleted The deleted of this
DocumentBulkDeleteResponseinstance.
-
setDeleted
Set the deleted of thisDocumentBulkDeleteResponseinstance.- Parameters:
deleted- List of successfully deleted document IDs
-
notFound
Set the notFound of thisDocumentBulkDeleteResponseinstance and return the same instance.- Parameters:
notFound- List of document IDs that were not found- Returns:
- The same instance of this
DocumentBulkDeleteResponseclass
-
addNotFoundItem
Add one notFound instance to thisDocumentBulkDeleteResponse.- Parameters:
notFoundItem- The notFound that should be added- Returns:
- The same instance of type
DocumentBulkDeleteResponse
-
getNotFound
List of document IDs that were not found- Returns:
- notFound The notFound of this
DocumentBulkDeleteResponseinstance.
-
setNotFound
Set the notFound of thisDocumentBulkDeleteResponseinstance.- Parameters:
notFound- List of document IDs that were not found
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDocumentBulkDeleteResponse.- 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 thisDocumentBulkDeleteResponseinstance.- 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 thisDocumentBulkDeleteResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDocumentBulkDeleteResponseinstance. 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 newDocumentBulkDeleteResponseinstance with all required arguments.
-
toMap()instead.