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