Class PauseFollowRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PauseFollowRequest.Builder>
co.elastic.clients.elasticsearch.ccr.PauseFollowRequest.Builder
- All Implemented Interfaces:
WithJson<PauseFollowRequest.Builder>,ObjectBuilder<PauseFollowRequest>
- Enclosing class:
- PauseFollowRequest
public static class PauseFollowRequest.Builder
extends RequestBase.AbstractBuilder<PauseFollowRequest.Builder>
implements ObjectBuilder<PauseFollowRequest>
Builder for
PauseFollowRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPauseFollowRequest.Required - The name of the follower index.masterTimeout(Time value) The period to wait for a connection to the master node.The period to wait for a connection to the master node.protected PauseFollowRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - The name of the follower index.API name:
index -
masterTimeout
The period to wait for a connection to the master node. If the master node is not available before the timeout expires, the request fails and returns an error. It can also be set to-1to indicate that the request should never timeout.API name:
master_timeout -
masterTimeout
public final PauseFollowRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a connection to the master node. If the master node is not available before the timeout expires, the request fails and returns an error. It can also be set to-1to indicate that the request should never timeout.API name:
master_timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PauseFollowRequest.Builder>
-
build
Builds aPauseFollowRequest.- Specified by:
buildin interfaceObjectBuilder<PauseFollowRequest>- Throws:
NullPointerException- if some of the required fields are null.
-