Interface DocumentBuilderStep1.DocumentBuilderStep2
- All Known Subinterfaces:
CreateDocumentBatchCommandStep1.CreateDocumentBatchCommandStep2,CreateDocumentCommandStep1.CreateDocumentCommandStep2
- All Known Implementing Classes:
CreateDocumentBatchCommandImpl.DocumentBuilderStep2BatchImpl,CreateDocumentCommandImpl,DocumentBuilder
- Enclosing interface:
DocumentBuilderStep1
public static interface DocumentBuilderStep1.DocumentBuilderStep2
-
Method Summary
Modifier and TypeMethodDescriptioncontentType(String contentType) Sets the content type of the document.customMetadata(String key, Object value) Adds a custom key-value pair to the document metadata.customMetadata(Map<String, Object> customMetadata) Adds custom key-value pairs to the document metadata.Sets the file name of the document.timeToLive(Duration timeToLive) Sets the time-to-live of the document.
-
Method Details
-
contentType
Sets the content type of the document.- Parameters:
contentType- the content type of the document
-
fileName
Sets the file name of the document.- Parameters:
name- the file name of the document
-
timeToLive
Sets the time-to-live of the document. The document will be automatically deleted after the time-to-live is exceeded.Depending on the document store, a maximum and a default time-to-live strategy may be enforced.
- Parameters:
timeToLive- the time-to-live of the document
-
customMetadata
Adds a custom key-value pair to the document metadata.- Parameters:
key- custom metadata keyvalue- custom metadata value
-
customMetadata
Adds custom key-value pairs to the document metadata.- Parameters:
customMetadata- custom metadata key-value pairs
-