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