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.Builder
batch(String batch)
Set the batch.PutDocumentOptions.Builder
body(File body)
Set the body.PutDocumentOptions.Builder
body(InputStream body)
Set the body.PutDocumentOptions
build()
Builds a PutDocumentOptions.PutDocumentOptions.Builder
contentType(String contentType)
Set the contentType.PutDocumentOptions.Builder
db(String db)
Set the db.PutDocumentOptions.Builder
docId(String docId)
Set the docId.PutDocumentOptions.Builder
document(Document document)
Set the document.PutDocumentOptions.Builder
ifMatch(String ifMatch)
Set the ifMatch.PutDocumentOptions.Builder
newEdits(Boolean newEdits)
Set the newEdits.PutDocumentOptions.Builder
rev(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
-
-