Class UpdateDocumentOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.UpdateDocumentOptions.Builder
- Enclosing class:
- UpdateDocumentOptions
public static class UpdateDocumentOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description UpdateDocumentOptions
build()
Builds a UpdateDocumentOptions.UpdateDocumentOptions.Builder
collectionId(String collectionId)
Set the collectionId.UpdateDocumentOptions.Builder
documentId(String documentId)
Set the documentId.UpdateDocumentOptions.Builder
environmentId(String environmentId)
Set the environmentId.UpdateDocumentOptions.Builder
file(File file)
Set the file.UpdateDocumentOptions.Builder
file(InputStream file)
Set the file.UpdateDocumentOptions.Builder
fileContentType(String fileContentType)
Set the fileContentType.UpdateDocumentOptions.Builder
filename(String filename)
Set the filename.UpdateDocumentOptions.Builder
metadata(String metadata)
Set the metadata.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdcollectionId
- the collectionIddocumentId
- the documentId
-
-
Method Details
-
build
Builds a UpdateDocumentOptions.- Returns:
- the new UpdateDocumentOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the UpdateDocumentOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the UpdateDocumentOptions builder
-
documentId
Set the documentId.- Parameters:
documentId
- the documentId- Returns:
- the UpdateDocumentOptions builder
-
file
Set the file.- Parameters:
file
- the file- Returns:
- the UpdateDocumentOptions builder
-
filename
Set the filename.- Parameters:
filename
- the filename- Returns:
- the UpdateDocumentOptions builder
-
fileContentType
Set the fileContentType.- Parameters:
fileContentType
- the fileContentType- Returns:
- the UpdateDocumentOptions builder
-
metadata
Set the metadata.- Parameters:
metadata
- the metadata- Returns:
- the UpdateDocumentOptions builder
-
file
Set the file.- Parameters:
file
- the file- Returns:
- the UpdateDocumentOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-