Package com.ibm.cloud.cloudant.v1.model
Class PutDesignDocumentOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.PutDesignDocumentOptions.Builder
-
- Enclosing class:
- PutDesignDocumentOptions
public static class PutDesignDocumentOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(String db, String ddoc, DesignDocument designDocument)Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutDesignDocumentOptions.Builderbatch(String batch)Set the batch.PutDesignDocumentOptionsbuild()Builds a PutDesignDocumentOptions.PutDesignDocumentOptions.Builderdb(String db)Set the db.PutDesignDocumentOptions.Builderddoc(String ddoc)Set the ddoc.PutDesignDocumentOptions.BuilderdesignDocument(DesignDocument designDocument)Set the designDocument.PutDesignDocumentOptions.BuilderifMatch(String ifMatch)Set the ifMatch.PutDesignDocumentOptions.BuildernewEdits(Boolean newEdits)Set the newEdits.PutDesignDocumentOptions.Builderrev(String rev)Set the rev.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String db, String ddoc, DesignDocument designDocument)
Instantiates a new builder with required properties.- Parameters:
db- the dbddoc- the ddocdesignDocument- the designDocument
-
-
Method Detail
-
build
public PutDesignDocumentOptions build()
Builds a PutDesignDocumentOptions.- Returns:
- the new PutDesignDocumentOptions instance
-
db
public PutDesignDocumentOptions.Builder db(String db)
Set the db.- Parameters:
db- the db- Returns:
- the PutDesignDocumentOptions builder
-
ddoc
public PutDesignDocumentOptions.Builder ddoc(String ddoc)
Set the ddoc.- Parameters:
ddoc- the ddoc- Returns:
- the PutDesignDocumentOptions builder
-
designDocument
public PutDesignDocumentOptions.Builder designDocument(DesignDocument designDocument)
Set the designDocument.- Parameters:
designDocument- the designDocument- Returns:
- the PutDesignDocumentOptions builder
-
ifMatch
public PutDesignDocumentOptions.Builder ifMatch(String ifMatch)
Set the ifMatch.- Parameters:
ifMatch- the ifMatch- Returns:
- the PutDesignDocumentOptions builder
-
batch
public PutDesignDocumentOptions.Builder batch(String batch)
Set the batch.- Parameters:
batch- the batch- Returns:
- the PutDesignDocumentOptions builder
-
newEdits
public PutDesignDocumentOptions.Builder newEdits(Boolean newEdits)
Set the newEdits.- Parameters:
newEdits- the newEdits- Returns:
- the PutDesignDocumentOptions builder
-
rev
public PutDesignDocumentOptions.Builder rev(String rev)
Set the rev.- Parameters:
rev- the rev- Returns:
- the PutDesignDocumentOptions builder
-
-