Package com.ibm.cloud.cloudant.v1.model
Class PutDocumentOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PutDocumentOptions.Builder
- Enclosing class:
- PutDocumentOptions
Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the batch.Set the body.body(InputStream body) Set the body.build()Builds a PutDocumentOptions.contentType(String contentType) Set the contentType.Set the db.Set the docId.Set the document.Set the ifMatch.Set the newEdits.Set the rev.
-
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 PutDocumentOptions.- Returns:
- the new PutDocumentOptions instance
-
db
Set the db.- Parameters:
db- the db- Returns:
- the PutDocumentOptions builder
-
docId
Set the docId.- Parameters:
docId- the docId- Returns:
- the PutDocumentOptions builder
-
document
Set the document.- Parameters:
document- the document- Returns:
- the PutDocumentOptions builder
-
body
Set the body.- Parameters:
body- the body- Returns:
- the PutDocumentOptions builder
-
contentType
Set the contentType.- Parameters:
contentType- the contentType- Returns:
- the PutDocumentOptions builder
-
ifMatch
Set the ifMatch.- Parameters:
ifMatch- the ifMatch- Returns:
- the PutDocumentOptions builder
-
batch
Set the batch.- Parameters:
batch- the batch- Returns:
- the PutDocumentOptions builder
-
newEdits
Set the newEdits.- Parameters:
newEdits- the newEdits- Returns:
- the PutDocumentOptions builder
-
rev
Set the rev.- Parameters:
rev- the rev- Returns:
- the PutDocumentOptions builder
-
body
Set the body.- Parameters:
body- the body- Returns:
- the PutDocumentOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-