Package com.ibm.cloud.cloudant.v1.model
Class PostChangesOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.PostChangesOptions.Builder
-
- Enclosing class:
- PostChangesOptions
public static class PostChangesOptions.Builder extends Object
Builder.
-
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String db)
Instantiates a new builder with required properties.- Parameters:
db
- the db
-
-
Method Detail
-
build
public PostChangesOptions build()
Builds a PostChangesOptions.- Returns:
- the new PostChangesOptions instance
-
addDocIds
public PostChangesOptions.Builder addDocIds(String docIds)
Adds an docIds to docIds.- Parameters:
docIds
- the new docIds- Returns:
- the PostChangesOptions builder
-
addFields
public PostChangesOptions.Builder addFields(String fields)
Adds an fields to fields.- Parameters:
fields
- the new fields- Returns:
- the PostChangesOptions builder
-
db
public PostChangesOptions.Builder db(String db)
Set the db.- Parameters:
db
- the db- Returns:
- the PostChangesOptions builder
-
docIds
public PostChangesOptions.Builder docIds(List<String> docIds)
Set the docIds. Existing docIds will be replaced.- Parameters:
docIds
- the docIds- Returns:
- the PostChangesOptions builder
-
fields
public PostChangesOptions.Builder fields(List<String> fields)
Set the fields. Existing fields will be replaced.- Parameters:
fields
- the fields- Returns:
- the PostChangesOptions builder
-
selector
public PostChangesOptions.Builder selector(Map<String,Object> selector)
Set the selector.- Parameters:
selector
- the selector- Returns:
- the PostChangesOptions builder
-
lastEventId
public PostChangesOptions.Builder lastEventId(String lastEventId)
Set the lastEventId.- Parameters:
lastEventId
- the lastEventId- Returns:
- the PostChangesOptions builder
-
attEncodingInfo
public PostChangesOptions.Builder attEncodingInfo(Boolean attEncodingInfo)
Set the attEncodingInfo.- Parameters:
attEncodingInfo
- the attEncodingInfo- Returns:
- the PostChangesOptions builder
-
attachments
public PostChangesOptions.Builder attachments(Boolean attachments)
Set the attachments.- Parameters:
attachments
- the attachments- Returns:
- the PostChangesOptions builder
-
conflicts
public PostChangesOptions.Builder conflicts(Boolean conflicts)
Set the conflicts.- Parameters:
conflicts
- the conflicts- Returns:
- the PostChangesOptions builder
-
descending
public PostChangesOptions.Builder descending(Boolean descending)
Set the descending.- Parameters:
descending
- the descending- Returns:
- the PostChangesOptions builder
-
feed
public PostChangesOptions.Builder feed(String feed)
Set the feed.- Parameters:
feed
- the feed- Returns:
- the PostChangesOptions builder
-
filter
public PostChangesOptions.Builder filter(String filter)
Set the filter.- Parameters:
filter
- the filter- Returns:
- the PostChangesOptions builder
-
heartbeat
public PostChangesOptions.Builder heartbeat(long heartbeat)
Set the heartbeat.- Parameters:
heartbeat
- the heartbeat- Returns:
- the PostChangesOptions builder
-
includeDocs
public PostChangesOptions.Builder includeDocs(Boolean includeDocs)
Set the includeDocs.- Parameters:
includeDocs
- the includeDocs- Returns:
- the PostChangesOptions builder
-
limit
public PostChangesOptions.Builder limit(long limit)
Set the limit.- Parameters:
limit
- the limit- Returns:
- the PostChangesOptions builder
-
seqInterval
public PostChangesOptions.Builder seqInterval(long seqInterval)
Set the seqInterval.- Parameters:
seqInterval
- the seqInterval- Returns:
- the PostChangesOptions builder
-
since
public PostChangesOptions.Builder since(String since)
Set the since.- Parameters:
since
- the since- Returns:
- the PostChangesOptions builder
-
style
public PostChangesOptions.Builder style(String style)
Set the style.- Parameters:
style
- the style- Returns:
- the PostChangesOptions builder
-
timeout
public PostChangesOptions.Builder timeout(long timeout)
Set the timeout.- Parameters:
timeout
- the timeout- Returns:
- the PostChangesOptions builder
-
view
public PostChangesOptions.Builder view(String view)
Set the view.- Parameters:
view
- the view- Returns:
- the PostChangesOptions builder
-
-