Class DataStreamIndex.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataStreamIndex.Builder>
co.elastic.clients.elasticsearch.indices.DataStreamIndex.Builder
- All Implemented Interfaces:
WithJson<DataStreamIndex.Builder>
,ObjectBuilder<DataStreamIndex>
- Enclosing class:
- DataStreamIndex
public static class DataStreamIndex.Builder
extends WithJsonObjectBuilderBase<DataStreamIndex.Builder>
implements ObjectBuilder<DataStreamIndex>
Builder for
DataStreamIndex
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDataStreamIndex
.final DataStreamIndex.Builder
Name of the current ILM lifecycle policy configured for this backing index.final DataStreamIndex.Builder
Required - Name of the backing index.final DataStreamIndex.Builder
Required - Universally unique identifier (UUID) for the index.final DataStreamIndex.Builder
Name of the lifecycle system that's currently managing this backing index.final DataStreamIndex.Builder
Indicates if ILM should take precedence over DSL in case both are configured to manage this index.protected DataStreamIndex.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
-
indexName
Required - Name of the backing index.API name:
index_name
-
indexUuid
Required - Universally unique identifier (UUID) for the index.API name:
index_uuid
-
ilmPolicy
Name of the current ILM lifecycle policy configured for this backing index.API name:
ilm_policy
-
managedBy
Name of the lifecycle system that's currently managing this backing index.API name:
managed_by
-
preferIlm
Indicates if ILM should take precedence over DSL in case both are configured to manage this index.API name:
prefer_ilm
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DataStreamIndex.Builder>
-
build
Builds aDataStreamIndex
.- Specified by:
build
in interfaceObjectBuilder<DataStreamIndex>
- Throws:
NullPointerException
- if some of the required fields are null.
-