Package com.ibm.cloud.cloudant.v1.model
Class PostDocumentOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.PostDocumentOptions.Builder
-
- Enclosing class:
- PostDocumentOptions
public static class PostDocumentOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostDocumentOptions.Builder
batch(String batch)
Set the batch.PostDocumentOptions.Builder
body(File body)
Set the body.PostDocumentOptions.Builder
body(InputStream body)
Set the body.PostDocumentOptions
build()
Builds a PostDocumentOptions.PostDocumentOptions.Builder
contentType(String contentType)
Set the contentType.PostDocumentOptions.Builder
db(String db)
Set the db.PostDocumentOptions.Builder
document(Document document)
Set the document.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String db)
Instantiates a new builder with required properties.- Parameters:
db
- the db
-
-
Method Detail
-
build
public PostDocumentOptions build()
Builds a PostDocumentOptions.- Returns:
- the new PostDocumentOptions instance
-
db
public PostDocumentOptions.Builder db(String db)
Set the db.- Parameters:
db
- the db- Returns:
- the PostDocumentOptions builder
-
document
public PostDocumentOptions.Builder document(Document document)
Set the document.- Parameters:
document
- the document- Returns:
- the PostDocumentOptions builder
-
body
public PostDocumentOptions.Builder body(InputStream body)
Set the body.- Parameters:
body
- the body- Returns:
- the PostDocumentOptions builder
-
contentType
public PostDocumentOptions.Builder contentType(String contentType)
Set the contentType.- Parameters:
contentType
- the contentType- Returns:
- the PostDocumentOptions builder
-
batch
public PostDocumentOptions.Builder batch(String batch)
Set the batch.- Parameters:
batch
- the batch- Returns:
- the PostDocumentOptions builder
-
body
public PostDocumentOptions.Builder body(File body) throws FileNotFoundException
Set the body.- Parameters:
body
- the body- Returns:
- the PostDocumentOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-
-