Class GetClusterSettingsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetClusterSettingsRequest.Builder>
co.elastic.clients.elasticsearch.cluster.GetClusterSettingsRequest.Builder
- All Implemented Interfaces:
- WithJson<GetClusterSettingsRequest.Builder>,- ObjectBuilder<GetClusterSettingsRequest>
- Enclosing class:
- GetClusterSettingsRequest
public static class GetClusterSettingsRequest.Builder
extends RequestBase.AbstractBuilder<GetClusterSettingsRequest.Builder>
implements ObjectBuilder<GetClusterSettingsRequest>
Builder for 
GetClusterSettingsRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aGetClusterSettingsRequest.flatSettings(Boolean value) Iftrue, returns settings in flat format.includeDefaults(Boolean value) Iftrue, also returns default values for all other cluster settings, reflecting the values in theelasticsearch.ymlfile of one of the nodes in the cluster.masterTimeout(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.protected GetClusterSettingsRequest.Builderself()Period to wait for a response.Period to wait for a response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
flatSettingsIftrue, returns settings in flat format.API name: flat_settings
- 
includeDefaultsIftrue, also returns default values for all other cluster settings, reflecting the values in theelasticsearch.ymlfile of one of the nodes in the cluster. If the nodes in your cluster do not all have the same values in theirelasticsearch.ymlconfig files then the values returned by this API may vary from invocation to invocation and may not reflect the values that Elasticsearch uses in all situations. Use theGET _nodes/settingsAPI to fetch the settings for each individual node in your cluster.API name: include_defaults
- 
masterTimeoutPeriod to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name: master_timeout
- 
masterTimeoutpublic final GetClusterSettingsRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name: master_timeout
- 
timeoutPeriod to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name: timeout
- 
timeoutpublic final GetClusterSettingsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name: timeout
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<GetClusterSettingsRequest.Builder>
 
- 
buildBuilds aGetClusterSettingsRequest.- Specified by:
- buildin interface- ObjectBuilder<GetClusterSettingsRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-