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