Package com.ibm.cloud.cloudant.v1.model
Class PutDesignDocumentOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PutDesignDocumentOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PutDesignDocumentOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe putDesignDocument options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutDesignDocumentOptions.BatchQuery parameter to specify whether to store in batch mode.static classPutDesignDocumentOptions.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbatch()Gets the batch.Stringdb()Gets the db.Stringddoc()Gets the ddoc.DesignDocumentdesignDocument()Gets the designDocument.StringifMatch()Gets the ifMatch.PutDesignDocumentOptions.BuildernewBuilder()New builder.BooleannewEdits()Gets the newEdits.Stringrev()Gets the rev.
-
-
-
Method Detail
-
newBuilder
public PutDesignDocumentOptions.Builder newBuilder()
New builder.- Returns:
- a PutDesignDocumentOptions builder
-
db
public String db()
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
ddoc
public String ddoc()
Gets the ddoc. Path parameter to specify the design document name. The design document name is the design document ID excluding the `_design/` prefix.- Returns:
- the ddoc
-
designDocument
public DesignDocument designDocument()
Gets the designDocument. HTTP request body for DesignDocument operations.- Returns:
- the designDocument
-
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
-
-