Class FollowRequest.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ccr.FollowRequest.Builder
All Implemented Interfaces:
ObjectBuilder<FollowRequest>
Enclosing class:
FollowRequest

public static class FollowRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<FollowRequest>
Builder for FollowRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • index

      public final FollowRequest.Builder index​(java.lang.String value)
      Required - The name of the follower index

      API name: index

    • leaderIndex

      public final FollowRequest.Builder leaderIndex​(@Nullable java.lang.String value)
      API name: leader_index
    • maxOutstandingReadRequests

      public final FollowRequest.Builder maxOutstandingReadRequests​(@Nullable java.lang.Long value)
      API name: max_outstanding_read_requests
    • maxOutstandingWriteRequests

      public final FollowRequest.Builder maxOutstandingWriteRequests​(@Nullable java.lang.Long value)
      API name: max_outstanding_write_requests
    • maxReadRequestOperationCount

      public final FollowRequest.Builder maxReadRequestOperationCount​(@Nullable java.lang.Long value)
      API name: max_read_request_operation_count
    • maxReadRequestSize

      public final FollowRequest.Builder maxReadRequestSize​(@Nullable java.lang.String value)
      API name: max_read_request_size
    • maxRetryDelay

      public final FollowRequest.Builder maxRetryDelay​(@Nullable Time value)
      API name: max_retry_delay
    • maxRetryDelay

      public final FollowRequest.Builder maxRetryDelay​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      API name: max_retry_delay
    • maxWriteBufferCount

      public final FollowRequest.Builder maxWriteBufferCount​(@Nullable java.lang.Long value)
      API name: max_write_buffer_count
    • maxWriteBufferSize

      public final FollowRequest.Builder maxWriteBufferSize​(@Nullable java.lang.String value)
      API name: max_write_buffer_size
    • maxWriteRequestOperationCount

      public final FollowRequest.Builder maxWriteRequestOperationCount​(@Nullable java.lang.Long value)
      API name: max_write_request_operation_count
    • maxWriteRequestSize

      public final FollowRequest.Builder maxWriteRequestSize​(@Nullable java.lang.String value)
      API name: max_write_request_size
    • readPollTimeout

      public final FollowRequest.Builder readPollTimeout​(@Nullable Time value)
      API name: read_poll_timeout
    • readPollTimeout

      public final FollowRequest.Builder readPollTimeout​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      API name: read_poll_timeout
    • remoteCluster

      public final FollowRequest.Builder remoteCluster​(@Nullable java.lang.String value)
      API name: remote_cluster
    • waitForActiveShards

      public final FollowRequest.Builder waitForActiveShards​(@Nullable WaitForActiveShards value)
      Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)

      API name: wait_for_active_shards

    • waitForActiveShards

      public final FollowRequest.Builder waitForActiveShards​(java.util.function.Function<WaitForActiveShards.Builder,​ObjectBuilder<WaitForActiveShards>> fn)
      Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)

      API name: wait_for_active_shards

    • build

      public FollowRequest build()
      Builds a FollowRequest.
      Specified by:
      build in interface ObjectBuilder<FollowRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.