Class GetIndexTemplateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetIndexTemplateRequest.Builder>
co.elastic.clients.elasticsearch.indices.GetIndexTemplateRequest.Builder
- All Implemented Interfaces:
WithJson<GetIndexTemplateRequest.Builder>,ObjectBuilder<GetIndexTemplateRequest>
- Enclosing class:
- GetIndexTemplateRequest
public static class GetIndexTemplateRequest.Builder
extends RequestBase.AbstractBuilder<GetIndexTemplateRequest.Builder>
implements ObjectBuilder<GetIndexTemplateRequest>
Builder for
GetIndexTemplateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetIndexTemplateRequest.flatSettings(Boolean value) If true, returns settings in flat format.includeDefaults(Boolean value) If true, returns all relevant default configurations for the index template.Deprecated.9.0.0 This parameter has no effect, is now deprecated, and will be removed in a future version.masterTimeout(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.Name of index template to retrieve.protected GetIndexTemplateRequest.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
-
flatSettings
If true, returns settings in flat format.API name:
flat_settings -
includeDefaults
If true, returns all relevant default configurations for the index template.API name:
include_defaults -
local
Deprecated.9.0.0 This parameter has no effect, is now deprecated, and will be removed in a future version.If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.API name:
local -
masterTimeout
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 -
masterTimeout
public final GetIndexTemplateRequest.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 -
name
Name of index template to retrieve. Wildcard (*) expressions are supported.API name:
name -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetIndexTemplateRequest.Builder>
-
build
Builds aGetIndexTemplateRequest.- Specified by:
buildin interfaceObjectBuilder<GetIndexTemplateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-