Class ReplicationDocument.Builder

java.lang.Object
com.ibm.cloud.cloudant.v1.model.ReplicationDocument.Builder
Enclosing class:
ReplicationDocument

public static class ReplicationDocument.Builder extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder(ReplicationDatabase source, ReplicationDatabase target)
      Instantiates a new builder with required properties.
      Parameters:
      source - the source
      target - the target
  • Method Details

    • build

      public ReplicationDocument build()
      Builds a ReplicationDocument.
      Returns:
      the new ReplicationDocument instance
    • addConflicts

      public ReplicationDocument.Builder addConflicts(String conflicts)
      Adds a new element to conflicts.
      Parameters:
      conflicts - the new element to be added
      Returns:
      the ReplicationDocument builder
    • addDeletedConflicts

      public ReplicationDocument.Builder addDeletedConflicts(String deletedConflicts)
      Adds a new element to deletedConflicts.
      Parameters:
      deletedConflicts - the new element to be added
      Returns:
      the ReplicationDocument builder
    • addRevsInfo

      public ReplicationDocument.Builder addRevsInfo(DocumentRevisionStatus revsInfo)
      Adds a new element to revsInfo.
      Parameters:
      revsInfo - the new element to be added
      Returns:
      the ReplicationDocument builder
    • addDocIds

      public ReplicationDocument.Builder addDocIds(String docIds)
      Adds a new element to docIds.
      Parameters:
      docIds - the new element to be added
      Returns:
      the ReplicationDocument builder
    • attachments

      public ReplicationDocument.Builder attachments(Map<String,Attachment> attachments)
      Set the attachments.
      Parameters:
      attachments - the attachments
      Returns:
      the ReplicationDocument builder
    • conflicts

      public ReplicationDocument.Builder conflicts(List<String> conflicts)
      Set the conflicts. Existing conflicts will be replaced.
      Parameters:
      conflicts - the conflicts
      Returns:
      the ReplicationDocument builder
    • deleted

      public ReplicationDocument.Builder deleted(Boolean deleted)
      Set the deleted.
      Parameters:
      deleted - the deleted
      Returns:
      the ReplicationDocument builder
    • deletedConflicts

      public ReplicationDocument.Builder deletedConflicts(List<String> 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

      public ReplicationDocument.Builder localSeq(String 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

      public ReplicationDocument.Builder revisions(Revisions 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

      public ReplicationDocument.Builder cancel(Boolean cancel)
      Set the cancel.
      Parameters:
      cancel - the cancel
      Returns:
      the ReplicationDocument builder
    • checkpointInterval

      public ReplicationDocument.Builder checkpointInterval(long checkpointInterval)
      Set the checkpointInterval.
      Parameters:
      checkpointInterval - the checkpointInterval
      Returns:
      the ReplicationDocument builder
    • connectionTimeout

      public ReplicationDocument.Builder connectionTimeout(long connectionTimeout)
      Set the connectionTimeout.
      Parameters:
      connectionTimeout - the connectionTimeout
      Returns:
      the ReplicationDocument builder
    • continuous

      public ReplicationDocument.Builder continuous(Boolean continuous)
      Set the continuous.
      Parameters:
      continuous - the continuous
      Returns:
      the ReplicationDocument builder
    • createTarget

      public ReplicationDocument.Builder createTarget(Boolean 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

      public ReplicationDocument.Builder docIds(List<String> docIds)
      Set the docIds. Existing docIds will be replaced.
      Parameters:
      docIds - the docIds
      Returns:
      the ReplicationDocument builder
    • filter

      public ReplicationDocument.Builder filter(String filter)
      Set the filter.
      Parameters:
      filter - the filter
      Returns:
      the ReplicationDocument builder
    • httpConnections

      public ReplicationDocument.Builder httpConnections(long httpConnections)
      Set the httpConnections.
      Parameters:
      httpConnections - the httpConnections
      Returns:
      the ReplicationDocument builder
    • queryParams

      public ReplicationDocument.Builder queryParams(Map<String,String> queryParams)
      Set the queryParams.
      Parameters:
      queryParams - the queryParams
      Returns:
      the ReplicationDocument builder
    • retriesPerRequest

      public ReplicationDocument.Builder retriesPerRequest(long retriesPerRequest)
      Set the retriesPerRequest.
      Parameters:
      retriesPerRequest - the retriesPerRequest
      Returns:
      the ReplicationDocument builder
    • selector

      public ReplicationDocument.Builder selector(Map<String,Object> selector)
      Set the selector.
      Parameters:
      selector - the selector
      Returns:
      the ReplicationDocument builder
    • sinceSeq

      public ReplicationDocument.Builder sinceSeq(String sinceSeq)
      Set the sinceSeq.
      Parameters:
      sinceSeq - the sinceSeq
      Returns:
      the ReplicationDocument builder
    • socketOptions

      public ReplicationDocument.Builder socketOptions(String 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 public ReplicationDocument.Builder sourceProxy(String sourceProxy)
      Deprecated.
      this method is deprecated and may be removed in a future release
      Set the sourceProxy.
      Parameters:
      sourceProxy - the sourceProxy
      Returns:
      the ReplicationDocument builder
    • target

      Set the target.
      Parameters:
      target - the target
      Returns:
      the ReplicationDocument builder
    • targetProxy

      @Deprecated public ReplicationDocument.Builder targetProxy(String targetProxy)
      Deprecated.
      this method is deprecated and may be removed in a future release
      Set the targetProxy.
      Parameters:
      targetProxy - the targetProxy
      Returns:
      the ReplicationDocument builder
    • useBulkGet

      public ReplicationDocument.Builder useBulkGet(Boolean useBulkGet)
      Set the useBulkGet.
      Parameters:
      useBulkGet - the useBulkGet
      Returns:
      the ReplicationDocument builder
    • useCheckpoints

      public ReplicationDocument.Builder useCheckpoints(Boolean useCheckpoints)
      Set the useCheckpoints.
      Parameters:
      useCheckpoints - the useCheckpoints
      Returns:
      the ReplicationDocument builder
    • userCtx

      public ReplicationDocument.Builder userCtx(UserContext userCtx)
      Set the userCtx.
      Parameters:
      userCtx - the userCtx
      Returns:
      the ReplicationDocument builder
    • winningRevsOnly

      public ReplicationDocument.Builder winningRevsOnly(Boolean winningRevsOnly)
      Set the winningRevsOnly.
      Parameters:
      winningRevsOnly - the winningRevsOnly
      Returns:
      the ReplicationDocument builder
    • workerBatchSize

      public ReplicationDocument.Builder workerBatchSize(long workerBatchSize)
      Set the workerBatchSize.
      Parameters:
      workerBatchSize - the workerBatchSize
      Returns:
      the ReplicationDocument builder
    • workerProcesses

      public ReplicationDocument.Builder workerProcesses(long workerProcesses)
      Set the workerProcesses.
      Parameters:
      workerProcesses - the workerProcesses
      Returns:
      the ReplicationDocument builder
    • add

      public ReplicationDocument.Builder add(String name, Object value)
      Add an arbitrary property.
      Parameters:
      name - the name of the property to add
      value - the value of the property to add
      Returns:
      the ReplicationDocument builder