Package com.ibm.cloud.cloudant.v1.model
Class PutDocumentOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.cloudant.v1.model.PutDocumentOptions
- All Implemented Interfaces:
ObjectModel
The putDocument 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 PutDocumentOptions builder
-
db
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
docId
Gets the docId. Path parameter to specify the document ID.- Returns:
- the docId
-
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
-
ifMatch
Gets the ifMatch. Header parameter for a conditional HTTP request matching an ETag.- Returns:
- the ifMatch
-
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
-
newEdits
Gets the newEdits. Query parameter to specify whether to prevent insertion of conflicting document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator to insert documents into the target database even if that leads to the creation of conflicts. Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is very easy to accidentally end up with a large number of conflicts.- Returns:
- the newEdits
-
rev
Gets the rev. Query parameter to specify a document revision.- Returns:
- the rev
-