Package com.ibm.cloud.cloudant.v1.model
Class PutDesignDocumentOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PutDesignDocumentOptions.Builder
- Enclosing class:
- PutDesignDocumentOptions
Builder.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Instantiates a new builder.Builder(String db, String ddoc, DesignDocument designDocument) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionSet the batch.build()Builds a PutDesignDocumentOptions.Set the db.Set the ddoc.designDocument(DesignDocument designDocument) Set the designDocument.Set the ifMatch.Set the newEdits.Set the rev.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
db- the dbddoc- the ddocdesignDocument- the designDocument
-
-
Method Details
-
build
Builds a PutDesignDocumentOptions.- Returns:
- the new PutDesignDocumentOptions instance
-
db
Set the db.- Parameters:
db- the db- Returns:
- the PutDesignDocumentOptions builder
-
ddoc
Set the ddoc.- Parameters:
ddoc- the ddoc- Returns:
- the PutDesignDocumentOptions builder
-
designDocument
Set the designDocument.- Parameters:
designDocument- the designDocument- Returns:
- the PutDesignDocumentOptions builder
-
ifMatch
Set the ifMatch.- Parameters:
ifMatch- the ifMatch- Returns:
- the PutDesignDocumentOptions builder
-
batch
Set the batch.- Parameters:
batch- the batch- Returns:
- the PutDesignDocumentOptions builder
-
newEdits
Set the newEdits.- Parameters:
newEdits- the newEdits- Returns:
- the PutDesignDocumentOptions builder
-
rev
Set the rev.- Parameters:
rev- the rev- Returns:
- the PutDesignDocumentOptions builder
-