Package com.ibm.cloud.cloudant.v1.model
Class PostDocumentOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.cloudant.v1.model.PostDocumentOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PostDocumentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The postDocument options.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Query parameter to specify whether to store in batch mode.static class
Builder. -
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a PostDocumentOptions builder
-
db
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
document
Gets the document. HTTP request body for Document operations.- Returns:
- the document
-
body
Gets the body. HTTP request body for Document operations.- Returns:
- the body
-
contentType
Gets the contentType. The type of the input.- Returns:
- the contentType
-
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
-