Class FollowRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FollowRequest.Builder>
co.elastic.clients.elasticsearch.ccr.FollowRequest.Builder
- All Implemented Interfaces:
WithJson<FollowRequest.Builder>
,ObjectBuilder<FollowRequest>
- Enclosing class:
- FollowRequest
public static class FollowRequest.Builder extends WithJsonObjectBuilderBase<FollowRequest.Builder> implements ObjectBuilder<FollowRequest>
Builder for
FollowRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description FollowRequest
build()
Builds aFollowRequest
.FollowRequest.Builder
index(java.lang.String value)
Required - The name of the follower indexFollowRequest.Builder
leaderIndex(java.lang.String value)
API name:leader_index
FollowRequest.Builder
maxOutstandingReadRequests(java.lang.Long value)
API name:max_outstanding_read_requests
FollowRequest.Builder
maxOutstandingWriteRequests(java.lang.Long value)
API name:max_outstanding_write_requests
FollowRequest.Builder
maxReadRequestOperationCount(java.lang.Long value)
API name:max_read_request_operation_count
FollowRequest.Builder
maxReadRequestSize(java.lang.String value)
API name:max_read_request_size
FollowRequest.Builder
maxRetryDelay(Time value)
API name:max_retry_delay
FollowRequest.Builder
maxRetryDelay(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
API name:max_retry_delay
FollowRequest.Builder
maxWriteBufferCount(java.lang.Long value)
API name:max_write_buffer_count
FollowRequest.Builder
maxWriteBufferSize(java.lang.String value)
API name:max_write_buffer_size
FollowRequest.Builder
maxWriteRequestOperationCount(java.lang.Long value)
API name:max_write_request_operation_count
FollowRequest.Builder
maxWriteRequestSize(java.lang.String value)
API name:max_write_request_size
FollowRequest.Builder
readPollTimeout(Time value)
API name:read_poll_timeout
FollowRequest.Builder
readPollTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
API name:read_poll_timeout
FollowRequest.Builder
remoteCluster(java.lang.String value)
API name:remote_cluster
protected FollowRequest.Builder
self()
FollowRequest.Builder
waitForActiveShards(WaitForActiveShards value)
Sets the number of shard copies that must be active before returning.FollowRequest.Builder
waitForActiveShards(java.util.function.Function<WaitForActiveShards.Builder,ObjectBuilder<WaitForActiveShards>> fn)
Sets the number of shard copies that must be active before returning.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - The name of the follower indexAPI name:
index
-
leaderIndex
API name:leader_index
-
maxOutstandingReadRequests
API name:max_outstanding_read_requests
-
maxOutstandingWriteRequests
API name:max_outstanding_write_requests
-
maxReadRequestOperationCount
API name:max_read_request_operation_count
-
maxReadRequestSize
API name:max_read_request_size
-
maxRetryDelay
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
API name:max_write_buffer_count
-
maxWriteBufferSize
API name:max_write_buffer_size
-
maxWriteRequestOperationCount
API name:max_write_request_operation_count
-
maxWriteRequestSize
API name:max_write_request_size
-
readPollTimeout
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
API name:remote_cluster
-
waitForActiveShards
Sets the number of shard copies that must be active before returning. Defaults to 0. Set toall
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 toall
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<FollowRequest.Builder>
-
build
Builds aFollowRequest
.- Specified by:
build
in interfaceObjectBuilder<FollowRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-