public static class UpdateDocumentOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String environmentId,
java.lang.String collectionId,
java.lang.String documentId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
UpdateDocumentOptions |
build()
Builds a UpdateDocumentOptions.
|
UpdateDocumentOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
UpdateDocumentOptions.Builder |
documentId(java.lang.String documentId)
Set the documentId.
|
UpdateDocumentOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
UpdateDocumentOptions.Builder |
file(java.io.InputStream file)
Set the file.
|
UpdateDocumentOptions.Builder |
fileContentType(java.lang.String fileContentType)
Set the fileContentType.
|
UpdateDocumentOptions.Builder |
metadata(java.lang.String metadata)
Set the metadata.
|
public Builder()
public Builder(java.lang.String environmentId, java.lang.String collectionId, java.lang.String documentId)
environmentId
- the environmentIdcollectionId
- the collectionIddocumentId
- the documentIdpublic UpdateDocumentOptions build()
public UpdateDocumentOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic UpdateDocumentOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic UpdateDocumentOptions.Builder documentId(java.lang.String documentId)
documentId
- the documentIdpublic UpdateDocumentOptions.Builder file(java.io.InputStream file)
file
- the filepublic UpdateDocumentOptions.Builder metadata(java.lang.String metadata)
metadata
- the metadatapublic UpdateDocumentOptions.Builder fileContentType(java.lang.String fileContentType)
fileContentType
- the fileContentType