Package com.ibm.cloud.cloudant.v1.model
Class ReplicationDocument.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.ReplicationDocument.Builder
- Enclosing class:
ReplicationDocument
Builder.
-
Constructor Summary
ConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(ReplicationDatabase source, ReplicationDatabase target) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionAdd an arbitrary property.addConflicts
(String conflicts) Adds a new element to conflicts.addDeletedConflicts
(String deletedConflicts) Adds a new element to deletedConflicts.Adds a new element to docIds.addRevsInfo
(DocumentRevisionStatus revsInfo) Adds a new element to revsInfo.attachments
(Map<String, Attachment> attachments) Set the attachments.build()
Builds a ReplicationDocument.Set the cancel.checkpointInterval
(long checkpointInterval) Set the checkpointInterval.Set the conflicts.connectionTimeout
(long connectionTimeout) Set the connectionTimeout.continuous
(Boolean continuous) Set the continuous.createTarget
(Boolean createTarget) Set the createTarget.createTargetParams
(ReplicationCreateTargetParameters createTargetParams) Set the createTargetParams.Set the deleted.deletedConflicts
(List<String> deletedConflicts) Set the deletedConflicts.Set the docIds.Set the filter.httpConnections
(long httpConnections) Set the httpConnections.Set the id.Set the localSeq.Set the owner.queryParams
(Map<String, String> queryParams) Set the queryParams.retriesPerRequest
(long retriesPerRequest) Set the retriesPerRequest.Set the rev.Set the revisions.revsInfo
(List<DocumentRevisionStatus> revsInfo) Set the revsInfo.Set the selector.Set the sinceSeq.socketOptions
(String socketOptions) Set the socketOptions.source
(ReplicationDatabase source) Set the source.sourceProxy
(String sourceProxy) Deprecated.this method is deprecated and may be removed in a future releasetarget
(ReplicationDatabase target) Set the target.targetProxy
(String targetProxy) Deprecated.this method is deprecated and may be removed in a future releaseuseBulkGet
(Boolean useBulkGet) Set the useBulkGet.useCheckpoints
(Boolean useCheckpoints) Set the useCheckpoints.userCtx
(UserContext userCtx) Set the userCtx.winningRevsOnly
(Boolean winningRevsOnly) Set the winningRevsOnly.workerBatchSize
(long workerBatchSize) Set the workerBatchSize.workerProcesses
(long workerProcesses) Set the workerProcesses.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
source
- the sourcetarget
- the target
-
-
Method Details
-
build
Builds a ReplicationDocument.- Returns:
- the new ReplicationDocument instance
-
addConflicts
Adds a new element to conflicts.- Parameters:
conflicts
- the new element to be added- Returns:
- the ReplicationDocument builder
-
addDeletedConflicts
Adds a new element to deletedConflicts.- Parameters:
deletedConflicts
- the new element to be added- Returns:
- the ReplicationDocument builder
-
addRevsInfo
Adds a new element to revsInfo.- Parameters:
revsInfo
- the new element to be added- Returns:
- the ReplicationDocument builder
-
addDocIds
Adds a new element to docIds.- Parameters:
docIds
- the new element to be added- Returns:
- the ReplicationDocument builder
-
attachments
Set the attachments.- Parameters:
attachments
- the attachments- Returns:
- the ReplicationDocument builder
-
conflicts
Set the conflicts. Existing conflicts will be replaced.- Parameters:
conflicts
- the conflicts- Returns:
- the ReplicationDocument builder
-
deleted
Set the deleted.- Parameters:
deleted
- the deleted- Returns:
- the ReplicationDocument builder
-
deletedConflicts
Set the deletedConflicts. Existing deletedConflicts will be replaced.- Parameters:
deletedConflicts
- the deletedConflicts- Returns:
- the ReplicationDocument builder
-
id
Set the id.- Parameters:
id
- the id- Returns:
- the ReplicationDocument builder
-
localSeq
Set the localSeq.- Parameters:
localSeq
- the localSeq- Returns:
- the ReplicationDocument builder
-
rev
Set the rev.- Parameters:
rev
- the rev- Returns:
- the ReplicationDocument builder
-
revisions
Set the revisions.- Parameters:
revisions
- the revisions- Returns:
- the ReplicationDocument builder
-
revsInfo
Set the revsInfo. Existing revsInfo will be replaced.- Parameters:
revsInfo
- the revsInfo- Returns:
- the ReplicationDocument builder
-
cancel
Set the cancel.- Parameters:
cancel
- the cancel- Returns:
- the ReplicationDocument builder
-
checkpointInterval
Set the checkpointInterval.- Parameters:
checkpointInterval
- the checkpointInterval- Returns:
- the ReplicationDocument builder
-
connectionTimeout
Set the connectionTimeout.- Parameters:
connectionTimeout
- the connectionTimeout- Returns:
- the ReplicationDocument builder
-
continuous
Set the continuous.- Parameters:
continuous
- the continuous- Returns:
- the ReplicationDocument builder
-
createTarget
Set the createTarget.- Parameters:
createTarget
- the createTarget- Returns:
- the ReplicationDocument builder
-
createTargetParams
public ReplicationDocument.Builder createTargetParams(ReplicationCreateTargetParameters createTargetParams) Set the createTargetParams.- Parameters:
createTargetParams
- the createTargetParams- Returns:
- the ReplicationDocument builder
-
docIds
Set the docIds. Existing docIds will be replaced.- Parameters:
docIds
- the docIds- Returns:
- the ReplicationDocument builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the ReplicationDocument builder
-
httpConnections
Set the httpConnections.- Parameters:
httpConnections
- the httpConnections- Returns:
- the ReplicationDocument builder
-
owner
Set the owner.- Parameters:
owner
- the owner- Returns:
- the ReplicationDocument builder
-
queryParams
Set the queryParams.- Parameters:
queryParams
- the queryParams- Returns:
- the ReplicationDocument builder
-
retriesPerRequest
Set the retriesPerRequest.- Parameters:
retriesPerRequest
- the retriesPerRequest- Returns:
- the ReplicationDocument builder
-
selector
Set the selector.- Parameters:
selector
- the selector- Returns:
- the ReplicationDocument builder
-
sinceSeq
Set the sinceSeq.- Parameters:
sinceSeq
- the sinceSeq- Returns:
- the ReplicationDocument builder
-
socketOptions
Set the socketOptions.- Parameters:
socketOptions
- the socketOptions- Returns:
- the ReplicationDocument builder
-
source
Set the source.- Parameters:
source
- the source- Returns:
- the ReplicationDocument builder
-
sourceProxy
Deprecated.this method is deprecated and may be removed in a future releaseSet the sourceProxy.- Parameters:
sourceProxy
- the sourceProxy- Returns:
- the ReplicationDocument builder
-
target
Set the target.- Parameters:
target
- the target- Returns:
- the ReplicationDocument builder
-
targetProxy
Deprecated.this method is deprecated and may be removed in a future releaseSet the targetProxy.- Parameters:
targetProxy
- the targetProxy- Returns:
- the ReplicationDocument builder
-
useBulkGet
Set the useBulkGet.- Parameters:
useBulkGet
- the useBulkGet- Returns:
- the ReplicationDocument builder
-
useCheckpoints
Set the useCheckpoints.- Parameters:
useCheckpoints
- the useCheckpoints- Returns:
- the ReplicationDocument builder
-
userCtx
Set the userCtx.- Parameters:
userCtx
- the userCtx- Returns:
- the ReplicationDocument builder
-
winningRevsOnly
Set the winningRevsOnly.- Parameters:
winningRevsOnly
- the winningRevsOnly- Returns:
- the ReplicationDocument builder
-
workerBatchSize
Set the workerBatchSize.- Parameters:
workerBatchSize
- the workerBatchSize- Returns:
- the ReplicationDocument builder
-
workerProcesses
Set the workerProcesses.- Parameters:
workerProcesses
- the workerProcesses- Returns:
- the ReplicationDocument builder
-
add
Add an arbitrary property.- Parameters:
name
- the name of the property to addvalue
- the value of the property to add- Returns:
- the ReplicationDocument builder
-