Package com.ibm.cloud.cloudant.v1.model
Class PutReplicationDocumentOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PutReplicationDocumentOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PutReplicationDocumentOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe putReplicationDocument options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutReplicationDocumentOptions.BatchQuery parameter to specify whether to store in batch mode.static classPutReplicationDocumentOptions.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbatch()Gets the batch.StringdocId()Gets the docId.StringifMatch()Gets the ifMatch.PutReplicationDocumentOptions.BuildernewBuilder()New builder.BooleannewEdits()Gets the newEdits.ReplicationDocumentreplicationDocument()Gets the replicationDocument.Stringrev()Gets the rev.
-
-
-
Method Detail
-
newBuilder
public PutReplicationDocumentOptions.Builder newBuilder()
New builder.- Returns:
- a PutReplicationDocumentOptions builder
-
docId
public String docId()
Gets the docId. Path parameter to specify the document ID.- Returns:
- the docId
-
replicationDocument
public ReplicationDocument replicationDocument()
Gets the replicationDocument. HTTP request body for replication operations.- Returns:
- the replicationDocument
-
ifMatch
public String ifMatch()
Gets the ifMatch. Header parameter to specify the document revision. Alternative to rev query parameter.- Returns:
- the ifMatch
-
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
-
newEdits
public Boolean 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.- Returns:
- the newEdits
-
rev
public String rev()
Gets the rev. Query parameter to specify a document revision.- Returns:
- the rev
-
-