Package com.ibm.cloud.cloudant.v1.model
Class PutDocumentOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.PutDocumentOptions.Builder
-
- Enclosing class:
- PutDocumentOptions
public static class PutDocumentOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutDocumentOptions.Builderbatch(String batch)Set the batch.PutDocumentOptions.Builderbody(File body)Set the body.PutDocumentOptions.Builderbody(InputStream body)Set the body.PutDocumentOptionsbuild()Builds a PutDocumentOptions.PutDocumentOptions.BuildercontentType(String contentType)Set the contentType.PutDocumentOptions.Builderdb(String db)Set the db.PutDocumentOptions.BuilderdocId(String docId)Set the docId.PutDocumentOptions.Builderdocument(Document document)Set the document.PutDocumentOptions.BuilderifMatch(String ifMatch)Set the ifMatch.PutDocumentOptions.BuildernewEdits(Boolean newEdits)Set the newEdits.PutDocumentOptions.Builderrev(String rev)Set the rev.
-
-
-
Method Detail
-
build
public PutDocumentOptions build()
Builds a PutDocumentOptions.- Returns:
- the new PutDocumentOptions instance
-
db
public PutDocumentOptions.Builder db(String db)
Set the db.- Parameters:
db- the db- Returns:
- the PutDocumentOptions builder
-
docId
public PutDocumentOptions.Builder docId(String docId)
Set the docId.- Parameters:
docId- the docId- Returns:
- the PutDocumentOptions builder
-
document
public PutDocumentOptions.Builder document(Document document)
Set the document.- Parameters:
document- the document- Returns:
- the PutDocumentOptions builder
-
body
public PutDocumentOptions.Builder body(InputStream body)
Set the body.- Parameters:
body- the body- Returns:
- the PutDocumentOptions builder
-
contentType
public PutDocumentOptions.Builder contentType(String contentType)
Set the contentType.- Parameters:
contentType- the contentType- Returns:
- the PutDocumentOptions builder
-
ifMatch
public PutDocumentOptions.Builder ifMatch(String ifMatch)
Set the ifMatch.- Parameters:
ifMatch- the ifMatch- Returns:
- the PutDocumentOptions builder
-
batch
public PutDocumentOptions.Builder batch(String batch)
Set the batch.- Parameters:
batch- the batch- Returns:
- the PutDocumentOptions builder
-
newEdits
public PutDocumentOptions.Builder newEdits(Boolean newEdits)
Set the newEdits.- Parameters:
newEdits- the newEdits- Returns:
- the PutDocumentOptions builder
-
rev
public PutDocumentOptions.Builder rev(String rev)
Set the rev.- Parameters:
rev- the rev- Returns:
- the PutDocumentOptions builder
-
body
public PutDocumentOptions.Builder body(File body) throws FileNotFoundException
Set the body.- Parameters:
body- the body- Returns:
- the PutDocumentOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-
-