Class PauseAutoFollowPatternRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PauseAutoFollowPatternRequest.Builder>
co.elastic.clients.elasticsearch.ccr.PauseAutoFollowPatternRequest.Builder
- All Implemented Interfaces:
WithJson<PauseAutoFollowPatternRequest.Builder>
,ObjectBuilder<PauseAutoFollowPatternRequest>
- Enclosing class:
- PauseAutoFollowPatternRequest
public static class PauseAutoFollowPatternRequest.Builder
extends RequestBase.AbstractBuilder<PauseAutoFollowPatternRequest.Builder>
implements ObjectBuilder<PauseAutoFollowPatternRequest>
Builder for
PauseAutoFollowPatternRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPauseAutoFollowPatternRequest
.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.Required - The name of the auto-follow pattern to pause.protected PauseAutoFollowPatternRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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-1
to indicate that the request should never timeout.API name:
master_timeout
-
masterTimeout
public final PauseAutoFollowPatternRequest.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-1
to indicate that the request should never timeout.API name:
master_timeout
-
name
Required - The name of the auto-follow pattern to pause.API name:
name
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PauseAutoFollowPatternRequest.Builder>
-
build
Builds aPauseAutoFollowPatternRequest
.- Specified by:
build
in interfaceObjectBuilder<PauseAutoFollowPatternRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-