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 FollowRequestbuild()Builds aFollowRequest.FollowRequest.Builderindex(java.lang.String value)Required - The name of the follower indexFollowRequest.BuilderleaderIndex(java.lang.String value)API name:leader_indexFollowRequest.BuildermaxOutstandingReadRequests(java.lang.Long value)API name:max_outstanding_read_requestsFollowRequest.BuildermaxOutstandingWriteRequests(java.lang.Long value)API name:max_outstanding_write_requestsFollowRequest.BuildermaxReadRequestOperationCount(java.lang.Long value)API name:max_read_request_operation_countFollowRequest.BuildermaxReadRequestSize(java.lang.String value)API name:max_read_request_sizeFollowRequest.BuildermaxRetryDelay(Time value)API name:max_retry_delayFollowRequest.BuildermaxRetryDelay(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:max_retry_delayFollowRequest.BuildermaxWriteBufferCount(java.lang.Long value)API name:max_write_buffer_countFollowRequest.BuildermaxWriteBufferSize(java.lang.String value)API name:max_write_buffer_sizeFollowRequest.BuildermaxWriteRequestOperationCount(java.lang.Long value)API name:max_write_request_operation_countFollowRequest.BuildermaxWriteRequestSize(java.lang.String value)API name:max_write_request_sizeFollowRequest.BuilderreadPollTimeout(Time value)API name:read_poll_timeoutFollowRequest.BuilderreadPollTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:read_poll_timeoutFollowRequest.BuilderremoteCluster(java.lang.String value)API name:remote_clusterprotected FollowRequest.Builderself()FollowRequest.BuilderwaitForActiveShards(WaitForActiveShards value)Sets the number of shard copies that must be active before returning.FollowRequest.BuilderwaitForActiveShards(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
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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 toallfor 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 toallfor 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:
selfin classWithJsonObjectBuilderBase<FollowRequest.Builder>
-
build
Builds aFollowRequest.- Specified by:
buildin interfaceObjectBuilder<FollowRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-