Package com.ibm.cloud.cloudant.v1.model
Class PutLocalDocumentOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PutLocalDocumentOptions.Builder
- Enclosing class:
PutLocalDocumentOptions
Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet the batch.Set the body.body
(InputStream body) Set the body.build()
Builds a PutLocalDocumentOptions.contentType
(String contentType) Set the contentType.Set the db.Set the docId.Set the document.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
db
- the dbdocId
- the docId
-
-
Method Details
-
build
Builds a PutLocalDocumentOptions.- Returns:
- the new PutLocalDocumentOptions instance
-
db
Set the db.- Parameters:
db
- the db- Returns:
- the PutLocalDocumentOptions builder
-
docId
Set the docId.- Parameters:
docId
- the docId- Returns:
- the PutLocalDocumentOptions builder
-
body
Set the body.- Parameters:
body
- the body- Returns:
- the PutLocalDocumentOptions builder
-
contentType
Set the contentType.- Parameters:
contentType
- the contentType- Returns:
- the PutLocalDocumentOptions builder
-
batch
Set the batch.- Parameters:
batch
- the batch- Returns:
- the PutLocalDocumentOptions builder
-
document
Set the document.- Parameters:
document
- the document- Returns:
- the PutLocalDocumentOptions builder
-
body
Set the body.- Parameters:
body
- the body- Returns:
- the PutLocalDocumentOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-