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 UpdateDocumentOptionsbuild()Builds a UpdateDocumentOptions.UpdateDocumentOptions.BuildercollectionId(String collectionId)Set the collectionId.UpdateDocumentOptions.BuilderdocumentId(String documentId)Set the documentId.UpdateDocumentOptions.BuilderenvironmentId(String environmentId)Set the environmentId.UpdateDocumentOptions.Builderfile(File file)Set the file.UpdateDocumentOptions.Builderfile(InputStream file)Set the file.UpdateDocumentOptions.BuilderfileContentType(String fileContentType)Set the fileContentType.UpdateDocumentOptions.Builderfilename(String filename)Set the filename.UpdateDocumentOptions.Buildermetadata(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
-