Package com.ibm.cloud.cloudant.v1.model
Class PutLocalDocumentOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PutLocalDocumentOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PutLocalDocumentOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe putLocalDocument options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutLocalDocumentOptions.BatchQuery parameter to specify whether to store in batch mode.static classPutLocalDocumentOptions.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbatch()Gets the batch.InputStreambody()Gets the body.StringcontentType()Gets the contentType.Stringdb()Gets the db.StringdocId()Gets the docId.Documentdocument()Gets the document.PutLocalDocumentOptions.BuildernewBuilder()New builder.
-
-
-
Method Detail
-
newBuilder
public PutLocalDocumentOptions.Builder newBuilder()
New builder.- Returns:
- a PutLocalDocumentOptions builder
-
db
public String db()
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
docId
public String docId()
Gets the docId. Path parameter to specify the document ID.- Returns:
- the docId
-
document
public Document document()
Gets the document. HTTP request body for Document operations.- Returns:
- the document
-
body
public InputStream body()
Gets the body. HTTP request body for Document operations.- Returns:
- the body
-
contentType
public String contentType()
Gets the contentType. The type of the input.- Returns:
- the contentType
-
batch
public String batch()
Gets the batch. Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately.- Returns:
- the batch
-
-