Class PutClusterSettingsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutClusterSettingsRequest.Builder>
co.elastic.clients.elasticsearch.cluster.PutClusterSettingsRequest.Builder
- All Implemented Interfaces:
WithJson<PutClusterSettingsRequest.Builder>
,ObjectBuilder<PutClusterSettingsRequest>
- Enclosing class:
- PutClusterSettingsRequest
public static class PutClusterSettingsRequest.Builder
extends RequestBase.AbstractBuilder<PutClusterSettingsRequest.Builder>
implements ObjectBuilder<PutClusterSettingsRequest>
Builder for
PutClusterSettingsRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPutClusterSettingsRequest
.flatSettings
(Boolean value) Return settings in flat format (default: false)masterTimeout
(Time value) Explicit operation timeout for connection to master nodeExplicit operation timeout for connection to master nodepersistent
(String key, JsonData value) The settings that persist after the cluster restarts.persistent
(Map<String, JsonData> map) The settings that persist after the cluster restarts.protected PutClusterSettingsRequest.Builder
self()
Explicit operation timeoutExplicit operation timeouttransient_
(String key, JsonData value) The settings that do not persist after the cluster restarts.transient_
(Map<String, JsonData> map) The settings that do not persist after the cluster restarts.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
-
flatSettings
Return settings in flat format (default: false)API name:
flat_settings
-
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout
-
masterTimeout
public final PutClusterSettingsRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Explicit operation timeout for connection to master nodeAPI name:
master_timeout
-
persistent
The settings that persist after the cluster restarts.API name:
persistent
Adds all entries of
map
topersistent
. -
persistent
The settings that persist after the cluster restarts.API name:
persistent
Adds an entry to
persistent
. -
timeout
Explicit operation timeoutAPI name:
timeout
-
timeout
public final PutClusterSettingsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Explicit operation timeoutAPI name:
timeout
-
transient_
The settings that do not persist after the cluster restarts.API name:
transient
Adds all entries of
map
totransient_
. -
transient_
The settings that do not persist after the cluster restarts.API name:
transient
Adds an entry to
transient_
. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutClusterSettingsRequest.Builder>
-
build
Builds aPutClusterSettingsRequest
.- Specified by:
build
in interfaceObjectBuilder<PutClusterSettingsRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-